SDL_GETDEFAULTTEXTURESCALEMODE(3)

πŸ“¦
version 3.4.18 Β· 5 versions
, in fedora 43, fedora 44

πŸ’– 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 β€” a SDL_ScaleMode that gets filled with the current default scale mode. and like, if you wanna know what that value actually means, go peek at SDL_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 🌈


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