SDL_SetSurfaceColorspace3
Set the colorspace used by a surface.
Usage
#include "SDL3/SDL.h"
bool SDL_SetSurfaceColorspace(SDL_Surface *surface, SDL_Colorspace colorspace);
Header file
Defined in SDL3/SDL_surface.h
Overview
Setting the colorspace doesn't change the pixels, only how they are interpreted in color operations.
Function parameters
surface
|
the |
|---|---|
colorspace
|
an |
Return value
Returns true on success or false on failure; call
SDL_GetError () for more information.
Thread safety
This function is not thread safe.