Man page - sdl_surfacehascolorkey(3)

Packages contas this manual

Manual

SDL_SurfaceHasColorKey(3) SDL3 FUNCTIONS SDL_SurfaceHasColorKey(3)

SDL_SurfaceHasColorKey - Returns whether the surface has a color key.

Defined in SDL3/SDL_surface.h

#include "SDL3/SDL.h"
bool SDL_SurfaceHasColorKey(SDL_Surface *surface);

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

the SDL_Surface
structure to query.

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

It is safe to call this function from any thread.

This function is available since SDL 3.2.0.

(3), SDL_SetSurfaceColorKey(3), (3), SDL_GetSurfaceColorKey(3)

SDL 3.2.10 Simple Directmedia Layer