#include <OGREInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Public Member Functions | |
| void * | lock (size_t offset, size_t length, OGRELockOptions options) |
| Lock the buffer for (potentially) reading / writing. | |
| void | readData (size_t offset, size_t length, void *pDest) |
| Get the current locked region. | |
| void | writeData (size_t offset, size_t length, const void *pSource, bool discardWholeBuffer=false) |
| void | blit (DIOGREHardwarePixelBuffer *src) |
| Copies a box from another PixelBuffer to a region of the this PixelBuffer. | |
| void | blitToMemory (DIOGREPixelBox *dst) |
| Copies a region from normal memory to a region of this pixelbuffer. | |
| unsigned int | getWidth () |
| Gets the width of this buffer. | |
| unsigned int | getHeight () |
| Gets the height of this buffer. | |
| unsigned int | getDepth () |
| Gets the depth of this buffer. | |
| OGREPixelFormat | getFormat () |
| Gets the native pixel format of this buffer. | |
| void* DigitalSpaces::DIOGREHardwarePixelBuffer::lock | ( | size_t | offset, | |
| size_t | length, | |||
| OGRELockOptions | options | |||
| ) |
Lock the buffer for (potentially) reading / writing.
| lockBox | Region of the buffer to lock | |
| options | Locking options |
| void DigitalSpaces::DIOGREHardwarePixelBuffer::readData | ( | size_t | offset, | |
| size_t | length, | |||
| void * | pDest | |||
| ) |
Get the current locked region.
This is the same value as returned by lock(const Image::Box, OGRELockOptions)
| void DigitalSpaces::DIOGREHardwarePixelBuffer::writeData | ( | size_t | offset, | |
| size_t | length, | |||
| const void * | pSource, | |||
| bool | discardWholeBuffer = false | |||
| ) |
| void DigitalSpaces::DIOGREHardwarePixelBuffer::blit | ( | DIOGREHardwarePixelBuffer * | src | ) |
Copies a box from another PixelBuffer to a region of the this PixelBuffer.
| dst | Source pixel buffer | |
| srcBox | Image::Box describing the source region in src | |
| dstBox | Image::Box describing the destination region in this buffer |
| src | PixelBox containing the source pixels and format in memory |
| void DigitalSpaces::DIOGREHardwarePixelBuffer::blitToMemory | ( | DIOGREPixelBox * | dst | ) |
Copies a region from normal memory to a region of this pixelbuffer.
The source image can be in any pixel format supported by OGRE, and in any size.
| src | PixelBox containing the source pixels and format in memory | |
| dstBox | Image::Box describing the destination region in this buffer |
| src | PixelBox containing the source pixels and format in memory |
| srcBox | Image::Box describing the source region of this buffer | |
| dst | PixelBox describing the destination pixels and format in memory |
| src | PixelBox containing the source pixels and format in memory |
| unsigned int DigitalSpaces::DIOGREHardwarePixelBuffer::getWidth | ( | ) |
Gets the width of this buffer.
| unsigned int DigitalSpaces::DIOGREHardwarePixelBuffer::getHeight | ( | ) |
Gets the height of this buffer.
| unsigned int DigitalSpaces::DIOGREHardwarePixelBuffer::getDepth | ( | ) |
Gets the depth of this buffer.
| OGREPixelFormat DigitalSpaces::DIOGREHardwarePixelBuffer::getFormat | ( | ) |
Gets the native pixel format of this buffer.
1.5.6