std::shared_ptr< SDL_Texture > texture_
Wrapper class to encapsulate creation and management of an SDL_Texture.
const info get_info() const
Queries metadata about the texture, such as its dimensions.
texture & operator=(const texture &t)=default
void reset()
Releases ownership of the managed texture and resets the ptr to null.
void assign(SDL_Texture *t)
Replaces ownership of the managed texture with the given one.
Small wrapper that queries metadata about the provided texture.