mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-16 17:58:27 +00:00
render: Added SDL_GetTextureRenderer().
This commit is contained in:
parent
7eae08cfc4
commit
9bc7cfc755
5 changed files with 26 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue