17 #ifndef HEADER_SUPERTUX_VIDEO_SDL_SURFACE_PTR_HPP 18 #define HEADER_SUPERTUX_VIDEO_SDL_SURFACE_PTR_HPP 27 SDL_Surface* m_surface;
39 m_surface(other.m_surface)
41 other.m_surface =
nullptr;
48 m_surface = other.m_surface;
49 other.m_surface =
nullptr;
56 SDL_FreeSurface(m_surface);
59 SDL_Surface& operator*()
64 const SDL_Surface& operator*()
const 69 SDL_Surface* operator->()
74 const SDL_Surface* operator->()
const 79 void reset(SDL_Surface* surface)
81 SDL_FreeSurface(m_surface);
85 SDL_Surface*
get()
const Simple Wrapper class around SDL_Surface that provides exception safety.
Definition: sdl_surface_ptr.hpp:24