PixelBuffer locking helper. More...
#include <pixel_buffer_lock.h>
Public Member Functions | |
| PixelBufferLock (GraphicContext &gc, PixelBuffer &pixel_buffer, BufferAccess access, bool lock_pixelbuffer=true) | |
| Constructs a gpu pixel buffer lock. | |
| PixelBufferLock (PixelBuffer &pixel_buffer, bool lock_pixelbuffer=true) | |
| Constructs a system pixel buffer lock. | |
| ~PixelBufferLock () | |
| Type * | get_data () |
| int | get_height () const |
| int | get_lock_count () const |
| Returns the amounts of recursive pixel_buffer locks performed by this section. | |
| int | get_pitch () const |
| Type & | get_pixel (int x, int y) |
| Type * | get_row (int y) |
| int | get_width () const |
| void | lock () |
| Lock the system pixel_buffer. | |
| void | lock (GraphicContext &gc, BufferAccess access) |
| Lock the gpu pixel_buffer. | |
| void | unlock () |
| Unlock pixel_buffer. | |
PixelBuffer locking helper.
|
inline |
Constructs a gpu pixel buffer lock.
|
inline |
Constructs a system pixel buffer lock.
|
inline |
|
inline |
|
inline |
|
inline |
Returns the amounts of recursive pixel_buffer locks performed by this section.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Lock the system pixel_buffer.
Referenced by clan::PixelBufferLock< unsigned char >::PixelBufferLock(), and clan::PixelBufferLock< unsigned char >::PixelBufferLock().
|
inline |
Lock the gpu pixel_buffer.
|
inline |
Unlock pixel_buffer.