render: Added SDL_GetTextureRenderer().

This commit is contained in:
Ryan C. Gordon 2024-01-08 10:17:38 -05:00
parent 7eae08cfc4
commit 9bc7cfc755
No known key found for this signature in database
GPG key ID: FA148B892AB48044
5 changed files with 26 additions and 0 deletions

View file

@ -1396,6 +1396,12 @@ SDL_Texture *SDL_CreateTextureFromSurface(SDL_Renderer *renderer, SDL_Surface *s
return texture;
}
SDL_Renderer *SDL_GetTextureRenderer(SDL_Texture *texture)
{
CHECK_TEXTURE_MAGIC(texture, NULL);
return texture->renderer;
}
SDL_PropertiesID SDL_GetTextureProperties(SDL_Texture *texture)
{
CHECK_TEXTURE_MAGIC(texture, 0);