X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-Tutorial.html-inc;h=d9967206dc2a7f25bb0bfd0b180f9da47922e5cf;hb=1f5d808215c3e475e7d752ba28a3f2c3d6f468ad;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..d996720 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 $ perldoc SDL::Tutorial - # to create a bare-bones SDL app based on this tutorial + # to run this tutorial $ perl -MSDL::Tutorial -e 1@@ -37,7 +45,7 @@
SDL, the Simple DirectMedia Layer, is a cross-platform multimedia library. These are the Perl 5 bindings. You can find out more about SDL at -http://www.libsdl.org/.
+http://www.libsdl.org/. You can find out more about SDL perl at http://sdl.perl.org.Creating an SDL application with Perl is easy. You have to know a few basics, though. Here's how to get up and running as quickly as possible.
@@ -45,7 +53,7 @@ though. Here's how to get up and running as quickly as possible.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
paramete
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.
@@ -98,30 +106,28 @@ them there, thenupdate
the $app
.
basic drawing with rectangles
-basic rectangle animation
+basic rectangle drawing and animation
image loading and animation
+basic image loading and animation
chromatic, <chromatic@wgz.org>.
+chromatic, <chromatic@wgz.org>.
+nelson ferraz, <nferraz@cpan.org>.
+Updated by kthakore and garu.
Written for and maintained by the Perl SDL project, http://sdl.perl.org/.
Copyright (c) 2003 - 2004, chromatic. All rights reserved. This module is +
Copyright (c) 2003 - 2004, chromatic. 2009 - 2010, kthakore. All rights reserved. This module is distributed under the same terms as Perl itself, in the hope that it is useful but certainly under no guarantee.