|
Rose
|
A helper class to wrap the SDL_LockSurface and SDL_UnlockSurface API calls. More...
#include <Surface.h>
Public Member Functions | |
| ~SurfaceLock () | |
| Unlock the surface on destruction. | |
| SurfaceLock ()=delete | |
| Deleted default constructor. | |
| SurfaceLock (SDL_Surface *surface) | |
| Construct a SurfaceLock. More... | |
| operator bool () const noexcept | |
| Check the validity of the surface lock. More... | |
Protected Attributes | |
| int | status {0} |
| The return status returned by SDL_LockSurface. | |
| SDL_Surface * | mSurface |
| The surface being locked. | |
A helper class to wrap the SDL_LockSurface and SDL_UnlockSurface API calls.
|
explicit |
Construct a SurfaceLock.
| surface | The surface that will be locked. |
|
inlineexplicitnoexcept |
Check the validity of the surface lock.
1.8.13