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=5b8e725a91e3bf468c41910a15736d15b4ac63f7;hp=d9967206dc2a7f25bb0bfd0b180f9da47922e5cf;hb=ca0a3441dd72000cbbbb4be484b18d0d305fdb29;hpb=05c66c332a6f0a0e519f8855419848dcab1aee62 diff --git a/pages/SDL-Tutorial.html-inc b/pages/SDL-Tutorial.html-inc index d996720..5b8e725 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.
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,11 +63,11 @@ 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( + my $app = SDLx::App->new( -width => 640, -height => 480, -depth => 16, @@ -77,9 +77,9 @@ ask for a windowed surface with 640x480x16 resolution: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 toMy SDL Program
:use SDL::App; +use SDLx::App; - my $app = SDL::App->new( + my $app = SDLx::App->new( -height => 640, -width => 480, -depth => 16,