X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-Tutorial.html-inc;h=afaa46f56955f4bff4f9253cb68e87f93cc8a82f;hb=55bbf7a209993f4172fd7e6555dda0947b844089;hp=0f33a14a392c9a79f4f7803c52330a6d8bcbe3d2;hpb=92e293d6d5adcc910443bf2ef174928e266c625d;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL-Tutorial.html-inc b/pages/SDL-Tutorial.html-inc index 0f33a14..afaa46f 100644 --- a/pages/SDL-Tutorial.html-inc +++ b/pages/SDL-Tutorial.html-inc @@ -53,7 +53,7 @@ though. Here's how to get up and running as quickly as possible.

Surfaces

All graphics in SDL live on a surface. You'll need at least one. That's what -SDL::App provides.

+SDL::App provides.

Of course, before you can get a surface, you need to initialize your video mode. SDL gives you several options, including whether to run in a window or take over the full screen, the size of the window, the bit depth of your @@ -95,8 +95,8 @@ surface. That's a bit more complicated, but see the -name paramete

Working With The App

Since $app from the code above is just an SDL surface with some extra sugar, -it behaves much like SDL::Surface. In particular, the all-important blit -and update methods work. You'll need to create SDL::Rect objects +it behaves much like SDL::Surface. In particular, the all-important blit +and update methods work. You'll need to create SDL::Rect objects representing sources of graphics to draw onto the $app's surface, blit them there, then update the $app.

Note: "blitting" is copying a chunk of memory from one place to another.

@@ -106,15 +106,15 @@ them there, then update the $app.

SEE ALSO

Top

-
SDL::Tutorial::Drawing
+
SDL::Tutorial::Drawing

basic drawing with rectangles

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

basic rectangle animation

-
SDL::Tutorial::Images
+
SDL::Tutorial::Images

image loading and animation