Function fermium::pixels::SDL_AllocPalette[][src]

pub unsafe extern "C" fn SDL_AllocPalette(
    ncolors: c_int
) -> *mut SDL_Palette
Expand description

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.