Function fermium::pixels::SDL_AllocPalette [−][src]
pub unsafe extern "C" fn SDL_AllocPalette(ncolors: c_int) -> *mut SDL_Palette
Create a palette structure with the specified number of color entries.
The palette entries are initialized to white.
Return: A new palette, or NULL if there wasn’t enough memory.