X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL.html-inc;h=15eab1c5f4516059697a7e6d11ae64698de975cd;hb=a17227e6775e4912e2fa2c7ed8a2a9fad0688479;hp=b74b8be147f53012759c03602ec6cc276a17a7d4;hpb=096d8dc83e9fce28b4ee221fcbe30eb9ead13da5;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL.html-inc b/pages/SDL.html-inc index b74b8be..15eab1c 100644 --- a/pages/SDL.html-inc +++ b/pages/SDL.html-inc @@ -8,16 +8,6 @@
SDL_perl - Simple DirectMedia Layer for Perl
+SDL - Simple DirectMedia Layer for Perl
use SDL; +use SDL ':all';@@ -70,68 +60,6 @@ object oriented programming interface please see the documentation provided on a per class basis.
Nick: magnet - -- -
Nick: Garu - Name: Breno G. de Oliveira - - Nick: Dngor - Name: Rocco Caputo - - Nick: nferraz - Name: Nelson Ferraz - - Nick: acme - Name: Leon Brocard - - Nick: FROGGS - Name: Tobias Leich - -- -
Nick: kthakore - Name: Kartik Thakore - -- -
Please get libsdl packages from Fink
-perl Build.PL - perl Build test - perl Build bundle - perl Build install - -- -
First set the PERL5LIB environment variable to the dependencies of your script
-%export PERL5LIB=$PERL5LIB:./lib - --
Use the SDLPerl executable made in the bundle and call your scripts
-%SDLPerl.app/Contents/MacOS/SDLPerl yourScript.pl - -- -
As with the C language API, SDL_perl initializes the SDL environment through
-the SDL::init
subroutine. This routine takes a mode flag constructed through
-the bitwise OR product of the following constants:
SDL::init
subroutine. This routine takes a mode flag constructed through
+the bitwise OR product of the SDL_INIT_* constants.
+The constants are not exported by default. You can export them into your namespace by doing:
+use SDL ':all'; + ++
or access them directly:
+SDL::SDL_INIT_AUDIO; + +
SDL::Init
returns 0 on success, or -1 on error.
Shuts down all SDL subsystems, unloads the dynamically linked library and frees the allocated resources. This should always be called before you exit.
+Shuts down all SDL subsystems, unloads the dynamically linked library and frees the allocated resources.
+Note: This will be called automatically when perl exits. You don't need to call this, except you want to initialize SDL after this again.
SDL::quit doesn't returns any value.
Unknown SDL error
- - - -Note 1: SDL_LASTERROR marks the highest numbered predefined error. Note 2: SDL also defines SDL_OutOfMemory() and SDL_Unsupported() for internal use which are equivalent to SDL_Error(SDL_ENOMEM) and SDL_Error(SDL_UNSUPPORTED) respectively.