SDL_SetSurfaceColorspace

Set the colorspace used by a surface.

Setting the colorspace doesn't change the pixels, only how they are interpreted in color operations.

extern (C) nothrow @nogc extern
bool
SDL_SetSurfaceColorspace

Parameters

surface SDL_Surface*

the SDL_Surface structure to update.

colorspace SDL_Colorspace

an SDL_Colorspace value describing the surface colorspace.

Return Value

Type: bool

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

See Also

Meta