SDL_SetSurfaceColorspace
Set the colorspace used by a surface.
- Provided by: libsdl3-doc (Version: 3.4.2+ds-1ubuntu1)
- Source: libsdl3
- Report a bug
Set the colorspace used by a surface.
#include <SDL3/SDL_surface.h>
bool SDL_SetSurfaceColorspace(SDL_Surface *surface, SDL_Colorspace colorspace);
Setting the colorspace doesn't change the pixels, only how they are interpreted in color operations.
Returns true on success or false on failure; call SDL_GetError() for more information.
This function can be called on different threads with different surfaces.
This function is available since SDL 3.2.0.