X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-Surface.html-inc;h=f8bb751f96fbc629cae96d115a645c1ce0cfc7e1;hb=c6a6575d8026dbc5743cc2056164661c6be15115;hp=7772fc19e929bc7a7ea6bc7f8c59da73e9e21031;hpb=92e293d6d5adcc910443bf2ef174928e266c625d;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL-Surface.html-inc b/pages/SDL-Surface.html-inc index 7772fc1..f8bb751 100644 --- a/pages/SDL-Surface.html-inc +++ b/pages/SDL-Surface.html-inc @@ -6,6 +6,7 @@
An SDL_Surface
defines a surfaceangular area of pixels.
The constants are not exported by default. You can export them into your namespace by doing:
+use SDL::Video ':flags'; + ++
or
+use SDL::Video ':all'; + ++
or access them directly:
+SDL::Video::SDL_SWSURFACE; + ++
Available constants: see flags
+ +Available flags for new() are exported by SDL::Video
Allow any pixel-format *
-Use asynchronous blit if possible
Double buffered *
-Use hardware acceleration blit
-Have an exclusive palette
+Stored in the system memory.
Stored in video memory
Full screen surface *
-Have an OpenGL context *
-Support OpenGL blitting *. NOTE: This option is kept for compatibility only, and is not recommended for new code.
-Resizable surface *
-Accelerated colorkey blitting with RLE
-Use alpha blending blit
-Use colorkey blitting
-Stored in the system memory. SDL_SWSURFACE is not actually a flag (it is defined as 0). A lack of SDL_HWSURFACE implies SDL_SWSURFACE
-Use preallocated memory
-The format of the pixels stored in the surface. See SDL::PixelFormat
+The format of the pixels stored in the surface. See SDL::PixelFormat
my $format = $surface->format;@@ -263,7 +230,7 @@