SDL_GetSurfaceColorKey

Get the color key (transparent pixel) for a surface.

The color key is a pixel of the format used by the surface, as generated by SDL_MapRGB().

If the surface doesn't have color key enabled this function returns false.

extern (C) nothrow @nogc extern
bool
SDL_GetSurfaceColorKey

Parameters

surface SDL_Surface*

the SDL_Surface structure to query.

key Uint32*

a pointer filled in with the transparent pixel.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

See Also

Meta