DOKK / manpages / debian 13 / libsdl3-doc / SDL_GetRendererFromTexture.3.en
SDL_GetRendererFromTexture(3) SDL3 FUNCTIONS SDL_GetRendererFromTexture(3)

SDL_GetRendererFromTexture - Get the renderer that created an SDL_Texture .

Defined in SDL3/SDL_render.h

#include "SDL3/SDL.h"
SDL_Renderer * SDL_GetRendererFromTexture(SDL_Texture *texture);

the texture to query.

( SDL_Renderer
*) Returns a pointer to the

SDL_Renderer
that created the texture, or NULL on failure; call SDL_GetError () for more information.

It is safe to call this function from any thread.

This function is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer