Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2009-10-15 05:50:23
Size: 521
Comment:
Revision 3 as of 2009-11-06 22:57:16
Size: 522
Editor: SheenaSmith
Comment: update formatting
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma section-numbers 2 #pragma section-numbers off
Line 6: Line 6:
<<TableOfContents(3)>> <<TableOfContents()>>

SDL_AllocPalette

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

Syntax

SDL_Palette * SDL_AllocPalette (int ncolors)

Function Parameters

Return Value

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

Code Examples

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