SDL_GetRende...reAddressMode(3)
π SDL_GetRende...reAddressMode(3) β SDL3 FUNCTIONS
okay bestie, welcome to the SDL3 functions page for SDL_GetRenderTextureAddressMode β¨ (yes the title got chopped in the header, that's just how the manual rolls, it's giving truncation-core but we move π«Ά)
πΈ NAME πΈ
SDL_GetRenderTextureAddressMode β get the texture addressing mode used in SDL_RenderGeometry() π
no cap, that's the whole job. you're just peeking at what address mode is currently set.
β¨ SYNOPSIS β¨
#include <SDL3/SDL_render.h>
bool SDL_GetRenderTextureAddressMode(SDL_Renderer *renderer, SDL_TextureAddressMode *u_mode, SDL_TextureAddressMode *v_mode);
look at her. one function, three params, returns a bool. iconic behavior honestly π
π FUNCTION PARAMETERS π
rendererβ the rendering context. your main character. the whole vibe lives here π₯u_modeβ a pointer that gets filled in with theSDL_TextureAddressModeto use for horizontal texture coordinates inSDL_RenderGeometry(). it may beNULLπ«v_modeβ a pointer that gets filled in with theSDL_TextureAddressModeto use for vertical texture coordinates inSDL_RenderGeometry(). it may beNULLtoo π
ok so bothu_modeandv_modeare optional (NULLis fine, she's chill) β you can ask for just one axis if that's all you need. periodt.
π RETURN VALUE π
Returns true on success or false on failure π₯² β and if it fails, call SDL_GetError() for more information. literally always check, bestie, don't just rawdog the return value π
π§΅ THREAD SAFETY π§΅
This function should only be called on the main thread. fr fr, do not try to be cute and call it from a worker thread, it's not that girl π
π¦ AVAILABILITY π¦
This function is available since SDL 3.4.0 β if you're on something older, sorry babe, no address mode for you π
π SEE ALSO π
SDL_SetRenderTextureAddressMode(3)β the setter twin, go say hi πΈ
ok that's the whole page, you ate it, you understood it, we're so proud π₯Ήβ¨
Simple Directmedia Layer Β· SDL 3.4.18 Β· and yeah, the footer's title is literally SDL_GetRende...reAddressMode(3) because the manual page header refuses to spell it all the way out β lowkey relatable, highkey a mood π
ππ
π¦ 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