X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-Tutorial-Animation.html-inc;h=a9da7275cf0ab885d7d1debdf8e4848c00aa3fff;hb=55bbf7a209993f4172fd7e6555dda0947b844089;hp=51fcdcf837de6cfcb7ba94182da6a01b7c2369c2;hpb=6e0d970b5047980a17d230b86d5c27c49213d18c;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL-Tutorial-Animation.html-inc b/pages/SDL-Tutorial-Animation.html-inc index 51fcdcf..a9da727 100644 --- a/pages/SDL-Tutorial-Animation.html-inc +++ b/pages/SDL-Tutorial-Animation.html-inc @@ -2,7 +2,10 @@
SDL::Tutorial::Animation
Tutorials
+ +# to read this tutorial @@ -51,8 +59,8 @@ 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 SDL::App object
@@ -147,11 +155,11 @@ them soon.$app
, a SDL::Rect$rect
, and -a SDL::Color$color
, you only have to create a new SDL::Rect$bg
, +every frame. Given a SDL::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 SDL::Color$bg_color
, representing the background color. You can write adraw_frame()
function as follows:SEE ALSO
-
- SDL::Tutorial::Drawing
+- SDL::Tutorial::Drawing
- -
basic drawing with SDL Perl
- SDL::Tutorial::Images
+- SDL::Tutorial::Images
animating images