Provided by: libsdl3-doc_3.2.20+ds-2_all bug

NAME

       SDL_CreatePalette - Create a palette structure with the specified number of color entries.

SYNOPSIS

       #include <SDL3/SDL_pixels.h>

       SDL_Palette * SDL_CreatePalette(int ncolors);

DESCRIPTION

       The palette entries are initialized to white.

FUNCTION PARAMETERS

       ncolors
              represents the number of color entries in the color palette.

RETURN VALUE

       Returns  a  new SDL_Palette structure on success or NULL on failure (e.g. if there wasn't enough memory);
       call SDL_GetError() for more information.

THREAD SAFETY

       It is safe to call this function from any thread.

AVAILABILITY

       This function is available since SDL 3.2.0.

SEE ALSO

       SDL_DestroyPalette(3), SDL_SetPaletteColors(3), SDL_SetSurfacePalette(3)

Simple Directmedia Layer                           SDL 3.2.20                               SDL_CreatePalette(3)