SDL_SetRenderTextureAddressMode

Set the texture addressing mode used in SDL_RenderGeometry().

Header File

Defined in <SDL3/SDL_render.h>

Syntax

bool SDL_SetRenderTextureAddressMode(SDL_Renderer *renderer, SDL_TextureAddressMode u_mode, SDL_TextureAddressMode v_mode);

Function Parameters

SDL_Renderer * renderer the rendering context.
SDL_TextureAddressMode u_mode the SDL_TextureAddressMode to use for horizontal texture coordinates in SDL_RenderGeometry().
SDL_TextureAddressMode v_mode the SDL_TextureAddressMode to use for vertical texture coordinates in SDL_RenderGeometry().

Return Value

(bool) Returns true on success or false on failure; call SDL_GetError() for more information.

Version

This function is available since SDL 3.4.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryRender