Definition at line 11 of file SurfaceLock.h.
Public Member Functions | |
SurfaceLock (SDL_Surface *surface) | |
Lock surface when necessary. | |
virtual | ~SurfaceLock () |
Unlock surface. |
|
Lock surface when necessary.
Definition at line 19 of file SurfaceLock.cpp. 00020 { 00021 m_surface = surface; 00022 if (SDL_MUSTLOCK(m_surface)) { 00023 if (SDL_LockSurface(m_surface) < 0) { 00024 throw SDLException(ExInfo("LockSurface")); 00025 } 00026 } 00027 }
|
|
Unlock surface.
Definition at line 32 of file SurfaceLock.cpp. 00033 {
00034 if (SDL_MUSTLOCK(m_surface)) {
00035 SDL_UnlockSurface(m_surface);
00036 }
00037 }
|