src/effect/SurfaceLock.h
raw| 1 | #ifndef HEADER_SURFACELOCK_H |
| 2 | #define HEADER_SURFACELOCK_H |
| 3 | |
| 4 | #include "NoCopy.h" |
| 5 | |
| 6 | #include "SDL.h" |
| 7 | |
| 8 | /** |
| 9 | * Lock and unlock surface. |
| 10 | */ |
| 11 | class SurfaceLock : public NoCopy { |
| 12 | private: |
| 13 | SDL_Surface *m_surface; |
| 14 | public: |
| 15 | SurfaceLock(SDL_Surface *surface); |
| 16 | virtual ~SurfaceLock(); |
| 17 | }; |
| 18 | |
| 19 | #endif |