|
Size: 521
Comment:
|
Size: 522
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.
Contents
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.
