sdlGetRendererFromTexture function
Get the renderer that created an SDL_Texture.
\param texture the texture to query. \returns a pointer to the SDL_Renderer that created the texture, or NULL on failure; call SDL_GetError() for more information.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC SDL_Renderer * SDLCALL SDL_GetRendererFromTexture(SDL_Texture *texture)
Implementation
Pointer<SdlRenderer> sdlGetRendererFromTexture(Pointer<SdlTexture> texture) {
final sdlGetRendererFromTextureLookupFunction = libSdl3.lookupFunction<
Pointer<SdlRenderer> Function(Pointer<SdlTexture> texture),
Pointer<SdlRenderer> Function(
Pointer<SdlTexture> texture)>('SDL_GetRendererFromTexture');
return sdlGetRendererFromTextureLookupFunction(texture);
}