|
⇤ ← Revision 1 as of 2009-10-15 05:42:45
Size: 497
Comment: page created, content added
|
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.
