| Palette Functions | |||||||||||||||||||||||||
|
Primitives Polygon Transform Surface Drawing Palette Control Misc Defines Extended Arguments Index Credits |
SDL_Color SPG_ToColor(Uint8 R, Uint8 G, Uint8 B) - Returns an SDL_Color structure initialized with the given RGB values. SDL_Color SPG_ToColor(Uint8 R, Uint8 G, Uint8 B, Uint8 A) - Returns an SDL_Color structure initialized with the given RGBA values. SDL_Color SPG_GetColor(SDL_Surface* Surface, Uint32 Color) - Returns an SDL_Color structure that represents the given color in the format of the given surface. void SPG_Fader(SDL_Surface* surface, Uint8 sR, Uint8 sG, Uint8 sB, Uint8 dR, Uint8 dG, Uint8 dB, Uint32 *ctab, int start, int stop) - Fills the given ctab array from 'start' index to 'stop' with 32-bit colors interpolated between the given colors. void SPG_AlphaFader(SDL_Surface* surface, Uint8 sR, Uint8 sG, Uint8 sB, Uint8 sA, Uint8 dR, Uint8 dG, Uint8 dB, Uint8 dA, Uint32 *ctab, int start, int stop) - Fills the given ctab array from 'start' index to 'stop' with 32-bit colors interpolated between the given colors. void SPG_SetupRainbowPalette(SDL_Surface* surface, Uint32 *ctab, int intensity, int start, int stop) - Fills the given ctab array from 'start' index to 'stop' with a rainbow palette at the given intensity. void SPG_SetupBWPalette(SDL_Surface* surface, Uint32 *ctab, int start, int stop) - Fills the given ctab array from 'start' index to 'stop' with a black and white palette. |
||||||||||||||||||||||||