Class SDL.Surface
- Description
Surface's represent areas of "graphical" memory, memory that can be drawn to. The video framebuffer is returned as a SDL.Surface by SDL.set_video_mode() and SDL.get_video_surface().
- Variable clip_rect
SDL.Rect
SDL.Surface.clip_rect- Description
This is the clipping rectangle as set by set_clip_rect().
- Variable flags
int
SDL.Surface.flags- Description
The following are supported in the flags field.
- SDL.SWSURFACE
Surface is stored in system memory
- SDL.HWSURFACE
Surface is stored in video memory
- SDL.ASYNCBLIT
Surface uses asynchronous blits if possible.
- SDL.ANYFORMAT
Allows any pixel-format (Display surface).
- SDL.HWPALETTE
Surface has exclusive palette.
- SDL.DOUBLEBUF
Surface is double buffered (Display surface).
- SDL.FULLSCREEN
Surface is full screen (Display Sur face).
- SDL.OPENGL
Surface has an OpenGL context (Display Surface).
- SDL.OPENGLBLIT
Surface supports OpenGL blitting (Display Surface).
- SDL.RESIZABLE
Surface is resizable (Display Surface).
- SDL.HWACCEL
Surface blit uses hardware acceleration.
- SDL.SRCCOLORKEY
Surface use colorkey blitting.
- SDL.RLEACCEL
Colorkey blitting is accelerated with RLE.
- SDL.SRCALPHA
Surface blit uses alpha blending.
- SDL.PREALLOC
Surface uses preallocated memory.
- Variable format
SDL.PixelFormat
SDL.Surface.format- Description
The pixel format of this surface.
- Variable
w
Variable h
int
SDL.Surface.w
int
SDL.Surface.h- Description
The width and height of the surface in pixels.