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=231b22687a00f9e257356834cb27fdb70a5e8605;hpb=162a0989f2a1d33d50c8950709319df21973e7b7;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL-Tutorial.html-inc b/pages/SDL-Tutorial.html-inc index 231b226..afaa46f 100644 --- a/pages/SDL-Tutorial.html-inc +++ b/pages/SDL-Tutorial.html-inc @@ -2,7 +2,10 @@
SDL::Tutorial - introduction to Perl SDL
+Tutorials
+ +# to read this tutorial @@ -45,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 @@ -87,8 +95,8 @@ surface. That's a bit more complicated, but see the
-name
parameteWorking 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-importantblit
-andupdate
methods work. You'll need to create SDL::Rect objects +it behaves much like SDL::Surface. In particular, the all-importantblit
+andupdate
methods work. You'll need to create SDL::Rect objects representing sources of graphics to draw onto the$app
's surface,blit
them there, thenupdate
the$app
.Note: "blitting" is copying a chunk of memory from one place to another.
@@ -98,15 +106,15 @@ them there, thenupdate
the$app
.SEE ALSO
-
- 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