SDL_SetSurfaceColorspace
Set the colorspace used by a surface.
- Provided by: libsdl3-doc (Version: 3.2.20+ds-2)
- 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.
for more information.
This function is not thread safe.
This function is available since SDL 3.2.0.