logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_SurfaceHasColorKey - Returns whether the surface has a color key.

Availability

       This function is available since SDL 3.2.0.

Description

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

Function Parameters

surface
              the SDL_Surface
               structure to query.

Header File

       Defined in SDL3/SDL_surface.h

Name

       SDL_SurfaceHasColorKey - Returns whether the surface has a color key.

Return Value

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

See Also

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

Simple Directmedia Layer                           SDL 3.2.10                          SDL_SurfaceHasColorKey(3)

Synopsis

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

Thread Safety

       It is safe to call this function from any thread.

See Also