Function SDL_GetSurfacePalette

pub unsafe extern "C" fn SDL_GetSurfacePalette(
    surface: *mut SDL_Surface,
) -> *mut SDL_Palette
Available on crate feature dep_sdl3 only.
Expand description

Get the palette used by a surface.

§Parameters

§Return value

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

§Availability

This function is available since SDL 3.2.0.

§See also