| Surface Functions | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Primitives Polygon Transform Surface Drawing Dirty Rect Palette Control Misc Defines Types Extended Arguments Index Credits |
SDL_Surface* SPG_CreateSurface(Uint32 flags, Uint16 width, Uint16 height) - Returns a new 32-bit RGBA surface with the given attributes. This is the same as SPG_CreateSurface32. SDL_Surface* SPG_CreateSurface8(Uint32 flags, Uint16 width, Uint16 height) - Returns a new 8-bit palettized surface with the given attributes. SDL_Surface* SPG_CreateSurface16(Uint32 flags, Uint16 width, Uint16 height) - Returns a new 16-bit RGB surface with the given attributes in 5-5-5 format. SDL_Surface* SPG_CreateSurface16Alpha(Uint32 flags, Uint16 width, Uint16 height) - Returns a new 16-bit RGBA surface with the given attributes in 4-4-4-4 format. SDL_Surface* SPG_CreateSurface24(Uint32 flags, Uint16 width, Uint16 height) - Returns a new 24-bit RGB surface with the given attributes. SDL_Surface* SPG_CreateSurfaceFrom(void* linearArray, Uint16 width, Uint16 height, SDL_PixelFormat* format) - Returns a new surface from the pixel data in 'linearArray'. SDL_Surface* SPG_CopySurface(SDL_Surface *src) - Returns a copy of the given surface. SDL_Surface* SPG_DisplayFormatAlpha(SDL_Surface* surf) - Returns the result of converting a surface to the display format and frees the original surface. void SPG_SetSurfaceAlpha(SDL_Surface* surface, Uint8 alpha) - Sets the per-surface alpha value for convenient surface transparency. void SPG_SetColorkey(SDL_Surface* img, Uint32 color) - Sets the given color on the given surface as fully transparent. void SPG_SetClip(SDL_Surface* surface, SDL_Rect& rect) - Sets the drawing area of 'surface' to 'rect'. SDL_Rect SPG_GetClip(SDL_Surface* surface) - Returns the current clip rect of the surface. void SPG_RestoreClip(SDL_Surface* surface) - Sets the drawing area of 'surface' to its original dimensions. |
||||||||||||||||||||||||||||||||||||||||||||||||