Locks a Surface for access to its pixels.
More...
|
| SurfaceLock (const SurfaceLock &other)=delete |
| Copy ctor.
|
|
| SurfaceLock (SurfaceLock &&other) |
| Move ctor.
|
|
| ~SurfaceLock () |
| destructor
|
|
SurfaceLock & | operator= (SurfaceLock other) |
| Assignment operator.
|
|
constexpr | operator bool () const |
| Returns true if lock is active.
|
|
void | Unlock () |
| Release the locked surface after directly accessing the pixels.
|
|
void * | GetPixels () const |
| Get the pixels.
|
|
int | GetPitch () const |
| Get pitch (the number of bytes between the start of one row the next)
|
|
PixelFormat | GetFormat () const |
| Get the pixel format.
|
|
Only really necessary if Surface.MustLock() returns t
◆ ~SurfaceLock()
SDL::SurfaceLock::~SurfaceLock |
( |
| ) |
|
|
inline |
◆ Unlock()
void SDL::SurfaceLock::Unlock |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: