Function Texture.size

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

uint[2] size() @property @trusted const;

Returns

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

Throws

dsdl2.SDLException if failed to query the information