SDL_SetRende...reAddressMode(3)

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

✨ 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 β€” the SDL_TextureAddressMode you want for the horizontal texture coordinates in SDL_RenderGeometry(). that's the u axis bestie, left-to-right energy ✨
  • v_mode β€” the SDL_TextureAddressMode you want for the vertical texture coordinates in SDL_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