Wiki Page Content

Differences between revisions 3 and 4
Revision 3 as of 2009-11-06 22:57:16
Size: 522
Editor: SheenaSmith
Comment: update formatting
Revision 4 as of 2009-11-06 23:00:45
Size: 582
Editor: SheenaSmith
Comment: add standard content
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
{{{#!highlight python {{{#!highlight cpp
Line 17: Line 17:
{{{#!highlight cpp
You can add your code example here
}}}

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

You can add your code example here

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