SDL_GetRende...reAddressMode(3)

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

πŸ’… 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 the SDL_TextureAddressMode to use for horizontal texture coordinates in SDL_RenderGeometry(). it may be NULL πŸ’«
  • v_mode β€” a pointer that gets filled in with the SDL_TextureAddressMode to use for vertical texture coordinates in SDL_RenderGeometry(). it may be NULL too 🌈
ok so both u_mode and v_mode are optional (NULL is 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 πŸ‘‘


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