Function Texture.width

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

uint width() @property @trusted const;

Returns

width of the dsdl2.Texture in pixels

Throws

dsdl2.SDLException if failed to query the information