SDL_GetTextureScaleMode(3)
β¨ SDL_GetTextureScaleMode β¨
okay bestie, welcome to the SDL_GetTextureScaleMode(3) page β this is the one where we find out what scale mode your texture is currently living in. it's giving "let me peek at your settings real quick" energy. π
πΈ NAME πΈ
SDL_GetTextureScaleMode</pη΄«θ²> β Get the scale mode used for texture scale operations.
like, you wanna know how this texture scales? this is the function that tells you. no cap. π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_render.h>
bool SDL_GetTextureScaleMode(SDL_Texture *texture, SDL_ScaleMode *scaleMode);
that's the whole vibe right there. you pass in a texture, you pass in a pointer, you get the scale mode filled in. iconic behavior honestly. β¨
π FUNCTION PARAMETERS π
textureβ the texture to query. like, the one you're curious about. the main character of this operation. πscaleModeβ a pointer filled in with the current scale mode. yes, it gets filled in β that's the whole point. it's an out-param, bestie. π«Ά
π RETURN VALUE π
Returns true on success or false on failure; call SDL_GetError() for more information.
so if you get true, slay. if you get false, don't panic β just hit up SDL_GetError() and it'll spill the tea on what went wrong. π
π₯ THREAD SAFETY π₯
This function should only be called on the main thread.
β οΈ bestie. MAIN THREAD ONLY. do not try to be cute and call this from some random worker thread. it will not end well. periodt. π
β AVAILABILITY β
This function is available since SDL 3.2.0.
so if you're on something older than that... yeah, no. you don't have this one yet. upgrade your vibe. πΈ
π SEE ALSO π
SDL_SetTextureScaleMode(3)β the setter to this getter. the other half of the duo. go check it out if you wanna change the scale mode instead of just peeking at it. π¦
mwah π that's the whole page. this manual page came to you from Simple Directmedia Layer, version SDL 3.4.18 β and yes, that's the same SDL_GetTextureScaleMode(3) we've been hyping up this whole time. stay hydrated, call it on the main thread, and go get that scale mode. πβ¨π«Ά
π¦ 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