SDL_GetSurfacePalette

Get the palette used by a surface.

extern (C) nothrow @nogc extern
SDL_GetSurfacePalette

Parameters

surface SDL_Surface*

the SDL_Surface structure to query.

Return Value

a pointer to the palette used by the surface, or NULL if there is no palette used.

See Also

Meta