SDL_GetTextureColorModFloat(3)
π SDL_GetTextureColorModFloat π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, this one's called SDL_GetTextureColorModFloat(3) and it's genuinely so useful. it's giving "peek at the color vibes without touching anything" β¨
β¨ NAME β¨
SDL_GetTextureColorModFloat β get that extra color value that's being multiplied into render copy operations. π¨
π¦ SYNOPSIS π¦
#include <SDL3/SDL_render.h>
bool SDL_GetTextureColorModFloat(SDL_Texture *texture, float *r, float *g, float *b);
πΈ FUNCTION PARAMETERS πΈ
textureβ the texture you're querying, aka the main character you're asking about πrβ a pointer that gets filled in with the current red color value πgβ a pointer that gets filled in with the current green color value πΏbβ a pointer that gets filled in with the current blue color value π
π RETURN VALUE π
returns true when it slays (success) or false when it flops (failure). if it flops, hit up SDL_GetError() for the deets, fr fr π
π THREAD SAFETY π
bestie. this function should only be called on the main thread. no side quests, no other threads, main thread only. periodt. π«π§΅
β AVAILABILITY β
this icon has been available since SDL 3.2.0. if you're on anything older, she's not there yet, sorry babe π
π₯ SEE ALSO π₯
go read those next, iykyk π«Ά
and that's the whole vibe check π brought to you by Simple Directmedia Layer, version SDL 3.4.18 β mwah, love u, go mod some colors πβ¨π
π¦ 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