Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2009-10-15 05:42:45
Size: 497
Comment: page created, content added
Revision 2 as of 2009-10-15 05:50:23
Size: 521
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
SDL_Palette * SDL_AllocPalette (int ncolors)  SDL_Palette * SDL_AllocPalette (int ncolors)
Line 15: Line 15:

== Code Examples ==
Line 17: Line 19:

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. Code Examples

5. Remarks

The palette entries are initialized to white.

SDL_FreePalette()

None: SDL_AllocPalette (last edited 2014-07-04 10:40:45 by PhilippWiesemann)

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