X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-Tutorial-Images.html-inc;fp=pages%2FSDL-Tutorial-Images.html-inc;h=cda90aa565385d935c22e42cbfca78a664a50972;hb=92e293d6d5adcc910443bf2ef174928e266c625d;hp=810121ba41f1ffc4e9e7b7c380a2af3f104f9574;hpb=2d13cef7f6c61e09ecbc7f2e4b0cfd66c2078020;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL-Tutorial-Images.html-inc b/pages/SDL-Tutorial-Images.html-inc index 810121b..cda90aa 100644 --- a/pages/SDL-Tutorial-Images.html-inc +++ b/pages/SDL-Tutorial-Images.html-inc @@ -55,9 +55,9 @@ need to draw the alternate image beforehand somehow.

Loading Images

-

As usual, start with an SDL::App object representing the image window. Then +

As usual, start with an SDL::App object representing the image window. Then preload the image file. This is easy; just pass the name parameter to the -SDL::Surface constructor:

+SDL::Surface constructor:

 

	use SDL::Surface;
 
@@ -100,7 +100,7 @@ though.  Assuming $app is the SDL::App object, as usual:

 

-

Here we have two SDL::Rect objects which represent rectangular regions of a +

Here we have two SDL::Rect objects which represent rectangular regions of a Surface. $frame_rect represents the entire area of $frame, while $dest_rect represents the area of the main window in which to blit the frame. This may be clearer with more descriptive variable names:

@@ -199,11 +199,11 @@ smoothly. More on that next time.

SEE ALSO

Top

-
SDL::Tutorial
+
SDL::Tutorial

basic SDL tutorial

-
SDL::Tutorial::Animation
+
SDL::Tutorial::Animation

non-image animation