| Surface Functions | |||||||||||||||||||||||||||||||
|
Primitives Polygon Transform Surface Drawing Palette Control Misc Defines Extended Arguments Index Credits |
SDL_Surface* SPG_CreateAlphaSurface(Uint32 flags, int width, int height) - Returns a new 32-bit RGBA surface with the given attributes. SDL_Surface* SPG_CreateAlphaSurfaceFrom(void* linearArray, int width, int height, SDL_PixelFormat* format) - Returns a new RGBA 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'. void SPG_RestoreClip(SDL_Surface* surface) - Sets the drawing area of 'surface' to its original dimensions. |
||||||||||||||||||||||||||||||