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.
References clan::PixelBuffer::get_height(), clan::PixelBuffer::get_width(), and clan::PixelBufferLock< Type >::lock().
| 
 | inline | 
Constructs a system pixel buffer lock.
References clan::PixelBuffer::get_height(), clan::PixelBuffer::get_width(), and clan::PixelBufferLock< Type >::lock().
| 
 | inline | 
References clan::PixelBuffer::is_null(), and clan::PixelBuffer::unlock().
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
Returns the amounts of recursive pixel_buffer locks performed by this section.
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
References clan::y.
| 
 | inline | 
| 
 | inline | 
Lock the system pixel_buffer.
References clan::PixelBuffer::get_data(), clan::PixelBuffer::get_pitch(), clan::PixelBuffer::is_gpu(), and clan::PixelBuffer::is_null().
Referenced by clan::PixelBufferLock< Type >::PixelBufferLock(), and clan::PixelBufferLock< Type >::PixelBufferLock().
| 
 | inline | 
Lock the gpu pixel_buffer.
References clan::PixelBuffer::get_data(), clan::PixelBuffer::get_pitch(), clan::PixelBuffer::is_null(), and clan::PixelBuffer::lock().
| 
 | inline | 
Unlock pixel_buffer.
References clan::PixelBuffer::is_null(), and clan::PixelBuffer::unlock().