SDL_GetTextureSize

Get the size of a texture, as floating point values.

extern (C) nothrow @nogc extern
bool
SDL_GetTextureSize
(,
float* w
,
float* h
)

Parameters

texture SDL_Texture*

The texture to query.

w float*

A pointer filled in with the width of the texture in pixels. This argument can be null if you don't need this information.

h float*

A pointer filled in with the height of the texture in pixels. This argument can be null if you don't need this information.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError for more information.

Threadsafety: This function should only be called on the main thread.

Meta