93 texture_.reset(SDL_CreateTexture(renderer, default_texture_format, access, w, h), &cleanup_texture);
std::shared_ptr< SDL_Texture > texture_
Wrapper class to encapsulate creation and management of an SDL_Texture.
static lg::log_domain log_sdl("SDL")
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.