Get the size of a texture, as floating point values.
Defined in <SDL3/SDL_render.h>
float *w, float *h); SDL_bool SDL_GetTextureSize(SDL_Texture *texture,
SDL_Texture * | texture | the texture to query. |
float * | w | a pointer filled in with the width of the texture in pixels. This argument can be NULL if you don't need this information. |
float * | h | a pointer filled in with the height of the texture in pixels. This argument can be NULL if you don't need this information. |
(SDL_bool) Returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
This function is available since SDL 3.0.0.