Texture.size

Wraps SDL_QueryTexture which gets the size of the dsdl2.Texture in pixels

class Texture
const @property @trusted
uint[2]
size
()

Return Value

Type: uint[2]

array of width and height of the dsdl2.Texture in pixels

Throws

dsdl2.SDLException if failed to query the information

Meta