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 β€” an SDL_Colorspace to 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