SDL_SetRende...reAddressMode(3)
β¨ NAME β¨
okay so this is SDL_SetRenderTextureAddressMode β bestie, it sets the texture addressing mode that gets used over in SDL_RenderGeometry(). that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_render.h>
bool SDL_SetRenderTextureAddressMode(SDL_Renderer *renderer, SDL_TextureAddressMode u_mode, SDL_TextureAddressMode v_mode);
like yes she takes three args and returns a bool, we love a straightforward queen π
π FUNCTION PARAMETERS π
rendererβ the rendering context. your whole lil rendering situation. the main character fr π«Άu_modeβ theSDL_TextureAddressModeyou want for the horizontal texture coordinates inSDL_RenderGeometry(). that's the u axis bestie, left-to-right energy β¨v_modeβ theSDL_TextureAddressModeyou want for the vertical texture coordinates inSDL_RenderGeometry(). that's the v axis, up-and-down vibes π
π RETURN VALUE π
returns true when it ate and false when it flopped π and if it flopped you gotta call SDL_GetError() to find out why β she will tell you everything, no cap.
π§΅ THREAD SAFETY π§΅
β οΈ main thread only, bestie!! this function should only be called on the main thread. do not be out here spawning threads and calling her, that's not the move π
π AVAILABILITY π
this cutie has been available since SDL 3.4.0 π so if you're on anything older... she's simply not there yet, sorry babe π
π SEE ALSO π
and that's the whole page, you're so welcome π this was brought to you by the lovely humans behind Simple Directmedia Layer, documented for SDL 3.4.18 β and yes, the manual page itself is dated to that same era. go forth and set those address modes, queen πβ¨
π¦ 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