X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=sdlgit%2FSDL-Site.git;a=blobdiff_plain;f=pages%2FSDL-Tutorial.html-inc;h=fdcc078a028a30299ba98c36af5cdf1ffc6154b9;hp=d9967206dc2a7f25bb0bfd0b180f9da47922e5cf;hb=d5943b684b1240307fbf0a103abbf18dd93998f4;hpb=1f5d808215c3e475e7d752ba28a3f2c3d6f468ad diff --git a/pages/SDL-Tutorial.html-inc b/pages/SDL-Tutorial.html-inc index d996720..fdcc078 100644 --- a/pages/SDL-Tutorial.html-inc +++ b/pages/SDL-Tutorial.html-inc @@ -14,7 +14,7 @@
All graphics in SDL live on a surface. You'll need at least one. That's what -SDL::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 @@ -63,32 +63,32 @@ something really simple.
SDL::App makes it easy to initialize video and create a surface. Here's how to +
SDLx::App makes it easy to initialize video and create a surface. Here's how to ask for a windowed surface with 640x480x16 resolution:
-use SDL::App; +use SDLx::App; - my $app = SDL::App->new( - -width => 640, - -height => 480, - -depth => 16, + my $app = SDLx::App->new( + 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
andicon
attributes in a windowed application. Here's how to set the window title of the application toMy SDL Program
:use SDL::App; +use SDLx::App; - my $app = SDL::App->new( - -height => 640, - -width => 480, - -depth => 16, - -title => 'My SDL Program', + my $app = SDLx::App->new( + 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 thename
parameter toSDL::Surface-
new()> if you want to skip ahead.
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 AUTHORS in SDL for details.