#include <sdl_surface_ptr.hpp>
Public Member Functions | |
SDLSurfacePtr () | |
SDLSurfacePtr (SDL_Surface *surface) | |
~SDLSurfacePtr () | |
SDL_Surface * | operator-> () |
void | reset (SDL_Surface *surface) |
SDL_Surface * | get () |
operator void * () | |
Private Member Functions | |
SDLSurfacePtr (const SDLSurfacePtr &) | |
SDLSurfacePtr & | operator= (const SDLSurfacePtr &) |
Private Attributes | |
SDL_Surface * | m_surface |
Definition at line 24 of file sdl_surface_ptr.hpp.
SDLSurfacePtr::SDLSurfacePtr | ( | ) | [inline] |
SDLSurfacePtr::SDLSurfacePtr | ( | SDL_Surface * | surface | ) | [inline] |
SDLSurfacePtr::~SDLSurfacePtr | ( | ) | [inline] |
Definition at line 38 of file sdl_surface_ptr.hpp.
References m_surface.
00039 { 00040 SDL_FreeSurface(m_surface); 00041 }
SDLSurfacePtr::SDLSurfacePtr | ( | const SDLSurfacePtr & | ) | [private] |
SDL_Surface* SDLSurfacePtr::operator-> | ( | ) | [inline] |
Definition at line 43 of file sdl_surface_ptr.hpp.
References m_surface.
00044 { 00045 return m_surface; 00046 }
void SDLSurfacePtr::reset | ( | SDL_Surface * | surface | ) | [inline] |
SDL_Surface* SDLSurfacePtr::get | ( | ) | [inline] |
Definition at line 54 of file sdl_surface_ptr.hpp.
References m_surface.
Referenced by TextureManager::create_dummy_texture(), and TextureManager::create_image_texture_raw().
00055 { 00056 return m_surface; 00057 }
SDLSurfacePtr::operator void * | ( | ) | [inline] |
Definition at line 59 of file sdl_surface_ptr.hpp.
References m_surface.
00059 { 00060 return m_surface; 00061 }
SDLSurfacePtr& SDLSurfacePtr::operator= | ( | const SDLSurfacePtr & | ) | [private] |
SDL_Surface* SDLSurfacePtr::m_surface [private] |
Definition at line 27 of file sdl_surface_ptr.hpp.
Referenced by get(), operator void *(), operator->(), reset(), and ~SDLSurfacePtr().