X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-Tutorial.html-inc;h=256fb70651245db6d9a98f7319dc21dc40537925;hb=879fff64432f43c80083c7b45da72611be9dca4b;hp=5b8e725a91e3bf468c41910a15736d15b4ac63f7;hpb=ca0a3441dd72000cbbbb4be484b18d0d305fdb29;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL-Tutorial.html-inc b/pages/SDL-Tutorial.html-inc index 5b8e725..256fb70 100644 --- a/pages/SDL-Tutorial.html-inc +++ b/pages/SDL-Tutorial.html-inc @@ -7,6 +7,7 @@
SDL::Tutorial
are incomplete and old. A new book has been started to provide
+a complete tutorial for SDL. See http://bit.ly/hvxc9V.
SDL, the Simple DirectMedia Layer, is a cross-platform multimedia library. @@ -53,7 +60,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 -SDLx::App provides.
+SDLx::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 @@ -68,27 +75,27 @@ ask for a windowed surface with 640x480x16 resolution:
use SDLx::App; my $app = SDLx::App->new( - -width => 640, - -height => 480, - -depth => 16, + width => 640, + height => 480, + depth => 16, );-
You can get more creative, especially if you use the -title
and -icon
+
You can get more creative, especially if you use the title
and icon
attributes in a windowed application. Here's how to set the window title of
the application to My SDL Program
:
use SDLx::App; my $app = SDLx::App->new( - -height => 640, - -width => 480, - -depth => 16, - -title => 'My SDL Program', + height => 640, + width => 480, + depth => 16, + title => 'My SDL Program', );
Setting an icon is a little more involved -- you have to load an image onto a
-surface. That's a bit more complicated, but see the -name
parameter to
+surface. That's a bit more complicated, but see the name
parameter to
SDL::Surface-
new()> if you want to skip ahead.
update
the $app
.
basic rectangle drawing and animation
update
the $app
.
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/.
+Written for and maintained by the Perl SDL project, http://sdl.perl.org/. See /SDL.html#AUTHORS for details.