Wiki Page Content

Revision 1 as of 2009-10-15 05:42:45

Clear message

SDL_AllocPalette

Use this function to create a palette structure with the specified number of color entries.

1. Syntax

SDL_Palette * SDL_AllocPalette (int ncolors) 

2. Function Parameters

3. Return Value

A new palette, or NULL if there wasn't enough memory

4. Remarks

The palette entries are initialized to white.

SDL_FreePalette()

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit