SDL_ISCOLORSPACE_LIMITED_RANGE(3)
π SDL_ISCOLORSPACE_LIMITED_RANGE π
okay bestie, so this one is from the SDL3 function pages, and it's literally the tiniest little macro with the biggest "am I in range or not" energy. It's a macro that tells you whether an SDL_Colorspace has a limited range. That's it. That's the whole job. And it eats. π
β¨ NAME β¨
SDL_ISCOLORSPACE_LIMITED_RANGE β a macro to determine if an SDL_Colorspace has a limited range. no cap, that's literally what it does π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_pixels.h>
#define SDL_ISCOLORSPACE_LIMITED_RANGE(cspace) (SDL_COLORSPACERANGE(cspace) != SDL_COLOR_RANGE_FULL)
like look at her. one line. flawless. the way that she just compares SDL_COLORSPACERANGE(cspace) against SDL_COLOR_RANGE_FULL and calls it a day?? iconic behavior fr fr π
π¦ MACRO PARAMETERS π¦
cspaceβ anSDL_Colorspaceto check. that's the one and only thing you're handing over, bestie π«Ά
π RETURN VALUE π
Returns true if limited range, false otherwise.
so basically: limited range βtrue, not limited range βfalse. she's a yes/no girlie and she knows it π
π§ THREAD SAFETY π§
It is safe to call this macro from any thread. π
not me being able to hit this from literally any thread with zero anxiety?? we LOVE a thread-safe macro. no locking, no drama, no tears πβ¨
π AVAILABILITY π
This macro is available since SDL 3.2.0. β
so if you're on anything older than that, she simply does not exist for you yet. sorry bestie π
anyway that's the whole page, short and sweet like a lil macaron π This little legend comes to you courtesy of Simple Directmedia Layer, rocking the SDL 3.4.18 era of the manual β k bye, go check your color ranges, 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