SDL_ISCOLORSPACE_FULL_RANGE(3)
β¨ SDL_ISCOLORSPACE_FULL_RANGE β¨
okay bestie, so this is a lil macro from the SDL3 FUNCTIONS lineup, and it's literally the glow-up check for your colourspaces π
πΈ NAME πΈ
SDL_ISCOLORSPACE_FULL_RANGE β a macro to determine if an SDL_Colorspace has a full range.
π SYNOPSIS π
#include <SDL3/SDL_pixels.h>
#define SDL_ISCOLORSPACE_FULL_RANGE(cspace) (SDL_COLORSPACERANGE(cspace) == SDL_COLOR_RANGE_FULL)
π¦ MACRO PARAMETERS π¦
cspaceβ anSDL_Colorspaceto check. that's it, that's the whole vibe π«Ά
β RETURN VALUE β
Returns true if it's full range, false otherwise. no in-between, no "it's complicated", just a clean yes or no fr fr β¨
π THREAD SAFETY π
It is safe to call this macro from any thread. go off, multithreaded queen π
π AVAILABILITY π
This macro is available since SDL 3.2.0. so if you're on something older... bestie, it's giving ancient π
not me wrapping up with the legal-ish bit π this page is brought to you by Simple Directmedia Layer, running SDL 3.4.18, and the macro's name is right there in the header if you forgot already π that's the whole footer, we're done here, mwah π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms