SDL_GetRenderColorScale(3)
π SDL_GetRenderColorScale(3) π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, we're doing renderer lore today β¨
πΈ NAME πΈ
SDL_GetRenderColorScale β grab the color scale that your render operations are currently using π¨
β¨ SYNOPSIS β¨
#include <SDL3/SDL_render.h>
bool SDL_GetRenderColorScale(SDL_Renderer *renderer, float *scale);
π FUNCTION PARAMETERS π
rendererβ the rendering context, aka your whole renderer situation, the main character of this function π«Άscaleβ a pointer that gets filled in with the current color scale value. she's an output param, she doesn't come with info, she receives info π
β RETURN VALUE β
Returns true on success or false on failure. and if it fails?? call SDL_GetError() for more information, because the universe will not tell you why for free π
π§ THREAD SAFETY π§
This function should only be called on the main thread. no sneaky background threads, no chaos gremlin energy, just main thread. periodt. π
π AVAILABILITY π
This function is available since SDL 3.2.0. so if you're on something older... bestie. upgrade. π
π SEE ALSO π
SDL_SetRenderColorScale(3)β the other half of this duo, the setter to your getter, the yin to your yang π¦
and that's the whole vibe check, you're officially fluent in color scale retrieval β¨
Simple Directmedia Layer π SDL 3.4.18 β mwah, love u, go read the source, iykyk ππ
π¦ 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