X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=sdlgit%2FSDL-Site.git;a=blobdiff_plain;f=pages%2FSDL-Tutorial-Animation.html-inc;fp=pages%2FSDL-Tutorial-Animation.html-inc;h=9cab64b6e97041560a875ee76664fc493cac3132;hp=2f15476828d7b9620bc8f05b874b84ce6b203a24;hb=bd9f3e156952798c46df29d610af0a36ea065e89;hpb=3ca0acf80ad36dcad7c27c606985e2c5d838040b diff --git a/pages/SDL-Tutorial-Animation.html-inc b/pages/SDL-Tutorial-Animation.html-inc index 2f15476..9cab64b 100644 --- a/pages/SDL-Tutorial-Animation.html-inc +++ b/pages/SDL-Tutorial-Animation.html-inc @@ -59,11 +59,11 @@ frame and saving and restoring the background for every object drawn.

Since you have to draw the screen in the right order once to start with it's pretty easy to make this into a loop and redraw things in the right order for -every frame. Given a SDLx::App object $app, a SDL::Rect $rect, and +every frame. Given a SDLx::App object $app, a SDL::Rect $rect, and a SDL::Color $color, you only have to create a new SDL::Rect $bg, representing the whole of the background surface and a new mapped color $bg_color, representing the background color. The colors need to be mapped -to the format of the current display. This is done by SDL::Video::map_RGB.

+to the format of the current display. This is done by SDL::Video::map_RGB.

 

my $color = SDL::Video::map_RGB ( $app->format, @@ -193,7 +193,7 @@ them soon.

chromatic, <chromatic@wgz.org>

Written for and maintained by the Perl SDL project, http://sdl.perl.org/. -See AUTHORS in SDL.

+See /SDL.html#AUTHORS.

BUGS

Top