SDL_GETDEFAULTTEXTURESCALEMODE(3)
π SDL_GetDefaultTextureScaleMode(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the man pages, and today's main character is SDL_GetDefaultTextureScaleMode β she's here to tell you what the default texture scale mode of a renderer is. no cap. π
β¨ NAME β¨
SDL_GetDefaultTextureScaleMode β get the default texture scale mode of the given renderer. that's it, that's the whole job, and she does it flawlessly π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_render.h>
bool SDL_GetDefaultTextureScaleMode(SDL_Renderer *renderer, SDL_ScaleMode *scale_mode);
look at her. two args, one bool. lowkey elegant. π¦
π«Ά FUNCTION PARAMETERS π«Ά
rendererβ the renderer you wanna get data from. she's your source, your info plug, your girl. β¨scale_modeβ aSDL_ScaleModethat gets filled with the current default scale mode. and like, if you wanna know what that value actually means, go peek atSDL_SetDefaultTextureScaleMode(), she explains it. iykyk. π
π RETURN VALUE π
returns true on success or false on failure. and if it fails?? call SDL_GetError() for more info, bestie, because she will NOT elaborate on her own. π
π§ THREAD SAFETY π§
main thread only, babes. do not try to be cute and call this from a worker thread. she said main thread and she meant it. periodt. π«
β AVAILABILITY β
this function is available since SDL 3.4.0. so if you're on anything older, it's giving "not in this timeline" π
π SEE ALSO π
SDL_SetDefaultTextureScaleMode(3)β her other half, the setter to this getter. iconic duo fr fr π
and that's the whole page, bestie!! stay slay, keep your renderers scaled, and remember: getters are for reading, not for drama. π
Simple Directmedia Layer β SDL 3.4.18 π mwah, catch you in the next man page π
π¦ 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