Function Texture.width

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

uint width() @property @trusted const;

Returns

width of the dsdl.Texture in pixels

Throws

dsdl.SDLException if failed to query the information