Surface Functions
Primitives
Polygon
Transform
Surface
Drawing
Palette
Control
Misc
Defines
Extended

Arguments

Index
Credits

Return Name Arguments
SDL_Surface*SPG_CreateAlphaSurfaceUint32 flags, int width, int height
SDL_Surface*SPG_CreateAlphaSurfaceFromvoid* linearArray, int width, int height, SDL_PixelFormat* format
SDL_Surface*SPG_CopySurfaceSDL_Surface* src
SDL_Surface*SPG_DisplayFormatSDL_Surface* surf
SDL_Surface*SPG_DisplayFormatAlphaSDL_Surface* surf
voidSPG_SetSurfaceAlphaSDL_Surface* surface, Uint8 alpha
voidSPG_SetColorkeySDL_Surface* img, Uint32 color
voidSPG_SetClipSDL_Surface* surface, SDL_Rect& rect
voidSPG_RestoreClipSDL_Surface* surface


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.


SPriG v0.94 Documentation by Jonathan Dearborn 2008