hadColorKey method

bool hadColorKey()

Returns whether the surface has a color key.

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

\param surface the SDL_Surface structure to query. \returns true if the surface has a color key, false otherwise.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.2.0.

\sa SDL_SetSurfaceColorKey \sa SDL_GetSurfaceColorKey

extern SDL_DECLSPEC bool SDLCALL SDL_SurfaceHasColorKey(SDL_Surface *surface)

{@category surface}

Implementation

bool hadColorKey() => sdlSurfaceHasColorKey(this);