Function sdl2_sys::SDL_AllocPalette

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

\brief Create a palette structure with the specified number of color entries.

\return A new palette, or NULL if there wasn’t enough memory.

\note The palette entries are initialized to white.

\sa SDL_FreePalette()