Function Texture.size

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

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

Returns

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

Throws

dsdl.SDLException if failed to query the information