#include <OGREInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Public Member Functions | |
| void * | Lock (unsigned long offset, unsigned long length, OGRELockOptions options) |
| Lock the buffer for (potentially) reading / writing. | |
| void * | Lock (OGRELockOptions options) |
| Lock the entire buffer for (potentially) reading / writing. | |
| void | Unlock (void) |
| Releases the lock on this buffer. | |
| void | ReadData (unsigned long offset, unsigned long length, void *pDest) |
| Reads data from the buffer and places it in the memory pointed to by pDest. | |
| void | WriteData (unsigned long offset, unsigned long length, const void *pSource) |
| Writes data to the buffer from an area of system memory; note that you must ensure that your buffer is big enough. | |
| void | WriteData (unsigned long offset, unsigned long length, const void *pSource, bool discardWholeBuffer) |
| void | CopyData (DIOGREHardwareBuffer *srcBuffer, unsigned long srcOffset, unsigned long dstOffset, unsigned long length) |
| Copy data from another buffer into this one. | |
| void | CopyData (DIOGREHardwareBuffer *srcBuffer, unsigned long srcOffset, unsigned long dstOffset, unsigned long length, bool discardWholeBuffer) |
| unsigned long | GetSizeInBytes (void) |
| Updates the real buffer from the shadow buffer, if required. | |
| OGREHardwareBufferUsage | GetUsage (void) |
| Returns the Usage flags with which this buffer was created. | |
| bool | IsSystemMemory (void) |
| Returns whether this buffer is held in system memory. | |
| bool | HasShadowBuffer (void) |
| Returns whether this buffer has a system memory shadow for quicker reading. | |
| bool | IsLocked (void) |
| Returns whether or not this buffer is currently locked. | |
| void | SuppressHardwareUpdate (bool suppress) |
| Pass true to suppress hardware upload of shadow buffer changes. | |
| void* DigitalSpaces::DIOGREHardwareBuffer::Lock | ( | unsigned long | offset, | |
| unsigned long | length, | |||
| OGRELockOptions | options | |||
| ) |
Lock the buffer for (potentially) reading / writing.
| offset | The byte offset from the start of the buffer to lock | |
| length | The size of the area to lock, in bytes | |
| options | Locking options |
| void* DigitalSpaces::DIOGREHardwareBuffer::Lock | ( | OGRELockOptions | options | ) |
Lock the entire buffer for (potentially) reading / writing.
| options | Locking options |
| void DigitalSpaces::DIOGREHardwareBuffer::Unlock | ( | void | ) |
Releases the lock on this buffer.
| void DigitalSpaces::DIOGREHardwareBuffer::ReadData | ( | unsigned long | offset, | |
| unsigned long | length, | |||
| void * | pDest | |||
| ) |
Reads data from the buffer and places it in the memory pointed to by pDest.
| offset | The byte offset from the start of the buffer to read | |
| length | The size of the area to read, in bytes | |
| pDest | The area of memory in which to place the data, must be large enough to accommodate the data! |
| void DigitalSpaces::DIOGREHardwareBuffer::WriteData | ( | unsigned long | offset, | |
| unsigned long | length, | |||
| const void * | pSource | |||
| ) |
Writes data to the buffer from an area of system memory; note that you must ensure that your buffer is big enough.
| offset | The byte offset from the start of the buffer to start writing | |
| length | The size of the data to write to, in bytes | |
| pSource | The source of the data to be written | |
| discardWholeBuffer | If true, this allows the driver to discard the entire buffer when writing, such that DMA stalls can be avoided; use if you can. |
| void DigitalSpaces::DIOGREHardwareBuffer::WriteData | ( | unsigned long | offset, | |
| unsigned long | length, | |||
| const void * | pSource, | |||
| bool | discardWholeBuffer | |||
| ) |
| void DigitalSpaces::DIOGREHardwareBuffer::CopyData | ( | DIOGREHardwareBuffer * | srcBuffer, | |
| unsigned long | srcOffset, | |||
| unsigned long | dstOffset, | |||
| unsigned long | length | |||
| ) |
Copy data from another buffer into this one.
| srcBuffer | The buffer from which to read the copied data | |
| srcOffset | Offset in the source buffer at which to start reading | |
| dstOffset | Offset in the destination buffer to start writing | |
| length | Length of the data to copy, in bytes. | |
| discardWholeBuffer | If true, will discard the entire contents of this buffer before copying |
| void DigitalSpaces::DIOGREHardwareBuffer::CopyData | ( | DIOGREHardwareBuffer * | srcBuffer, | |
| unsigned long | srcOffset, | |||
| unsigned long | dstOffset, | |||
| unsigned long | length, | |||
| bool | discardWholeBuffer | |||
| ) |
| unsigned long DigitalSpaces::DIOGREHardwareBuffer::GetSizeInBytes | ( | void | ) |
Updates the real buffer from the shadow buffer, if required.
Returns the size of this buffer in bytes
| OGREHardwareBufferUsage DigitalSpaces::DIOGREHardwareBuffer::GetUsage | ( | void | ) |
Returns the Usage flags with which this buffer was created.
| bool DigitalSpaces::DIOGREHardwareBuffer::IsSystemMemory | ( | void | ) |
Returns whether this buffer is held in system memory.
| bool DigitalSpaces::DIOGREHardwareBuffer::HasShadowBuffer | ( | void | ) |
Returns whether this buffer has a system memory shadow for quicker reading.
| bool DigitalSpaces::DIOGREHardwareBuffer::IsLocked | ( | void | ) |
Returns whether or not this buffer is currently locked.
| void DigitalSpaces::DIOGREHardwareBuffer::SuppressHardwareUpdate | ( | bool | suppress | ) |
Pass true to suppress hardware upload of shadow buffer changes.
1.5.6