SDL Wiki

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


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.