SDL_SurfaceHasColorKey

Function SDL_SurfaceHasColorKey 

Source
pub unsafe extern "C" fn SDL_SurfaceHasColorKey(
    surface: *mut SDL_Surface,
) -> bool
Expand description

Returns whether the surface has a color key.

It is safe to pass a NULL surface here; it will return false.

§Parameters

§Return value

Returns true if the surface has a color key, false otherwise.

§Thread safety

It is safe to call this function from any thread.

§Availability

This function is available since SDL 3.2.0.

§See also