#include <OgreDefaultHardwareBufferManager.h>
Inheritance diagram for Ogre::DefaultHardwareVertexBuffer:
Public Types | |
enum | Usage { HBU_STATIC = 1, HBU_DYNAMIC = 2, HBU_WRITE_ONLY = 4, HBU_STATIC_WRITE_ONLY = 5, HBU_DYNAMIC_WRITE_ONLY = 6 } |
Enums describing buffer usage; not mutually exclusive. More... | |
enum | LockOptions { HBL_NORMAL, HBL_DISCARD, HBL_READ_ONLY, HBL_NO_OVERWRITE } |
Locking options. More... | |
Public Methods | |
DefaultHardwareVertexBuffer (size_t vertexSize, size_t numVertices, HardwareBuffer::Usage usage) | |
~DefaultHardwareVertexBuffer () | |
void | readData (size_t offset, size_t length, void *pDest) |
See HardwareBuffer. | |
void | writeData (size_t offset, size_t length, const void *pSource, bool discardWholeBuffer=false) |
See HardwareBuffer. | |
void * | lock (size_t offset, size_t length, LockOptions options) |
Override HardwareBuffer to turn off all shadowing. | |
void | unlock (void) |
Override HardwareBuffer to turn off all shadowing. | |
size_t | getVertexSize (void) const |
Gets the size in bytes of a single vertex in this buffer. | |
size_t | getNumVertices (void) const |
Get the number of vertices in this buffer. | |
void * | lock (LockOptions options) |
Lock the entire buffer for (potentially) reading / writing. | |
virtual void | copyData (HardwareBuffer &srcBuffer, size_t srcOffset, size_t dstOffset, size_t length, bool discardWholeBuffer=false) |
Copy data from another buffer into this one. | |
virtual void | _updateFromShadow (void) |
Updates the real buffer from the shadow buffer, if required. | |
size_t | getSizeInBytes (void) const |
Returns the size of this buffer in bytes. | |
Usage | getUsage (void) const |
Returns the Usage flags with which this buffer was created. | |
bool | isSystemMemory (void) const |
Returns whether this buffer is held in system memory. | |
bool | hasShadowBuffer (void) const |
Returns whether this buffer has a system memory shadow for quicker reading. | |
bool | isLocked (void) const |
Returns whether or not this buffer is currently locked. | |
void | suppressHardwareUpdate (bool suppress) |
Pass true to suppress hardware upload of shadow buffer changes. | |
Protected Methods | |
void * | lockImpl (size_t offset, size_t length, LockOptions options) |
See HardwareBuffer. | |
void | unlockImpl (void) |
See HardwareBuffer. | |
Protected Attributes | |
unsigned char * | mpData |
size_t | mNumVertices |
size_t | mVertexSize |
size_t | mSizeInBytes |
Usage | mUsage |
bool | mIsLocked |
size_t | mLockStart |
size_t | mLockSize |
bool | mSystemMemory |
bool | mUseShadowBuffer |
HardwareBuffer * | mpShadowBuffer |
bool | mShadowUpdated |
bool | mSuppressHardwareUpdate |
Definition at line 37 of file OgreDefaultHardwareBufferManager.h.
|
Locking options.
Definition at line 96 of file OgreHardwareBuffer.h. |
|
Enums describing buffer usage; not mutually exclusive.
Definition at line 69 of file OgreHardwareBuffer.h. |
|
Definition at line 30 of file OgreDefaultHardwareBufferManager.cpp. References mpData, and Ogre::HardwareBuffer::mSizeInBytes. |
|
Definition at line 37 of file OgreDefaultHardwareBufferManager.cpp. References mpData. |
|
Updates the real buffer from the shadow buffer, if required.
Definition at line 249 of file OgreHardwareBuffer.h. References Ogre::HardwareBuffer::lockImpl(), and Ogre::HardwareBuffer::unlockImpl(). |
|
Copy data from another buffer into this one.
Definition at line 239 of file OgreHardwareBuffer.h. References Ogre::HardwareBuffer::lock(), and Ogre::HardwareBuffer::unlock(). |
|
Get the number of vertices in this buffer.
Definition at line 51 of file OgreHardwareVertexBuffer.h. |
|
Returns the size of this buffer in bytes.
Definition at line 274 of file OgreHardwareBuffer.h. |
|
Returns the Usage flags with which this buffer was created.
Definition at line 276 of file OgreHardwareBuffer.h. |
|
Gets the size in bytes of a single vertex in this buffer.
Definition at line 49 of file OgreHardwareVertexBuffer.h. Referenced by Ogre::D3D9RenderSystem::setVertexBufferBinding(). |
|
Returns whether this buffer has a system memory shadow for quicker reading.
Definition at line 280 of file OgreHardwareBuffer.h. |
|
Returns whether or not this buffer is currently locked.
Definition at line 282 of file OgreHardwareBuffer.h. Referenced by Ogre::HardwareBuffer::unlock(). |
|
Returns whether this buffer is held in system memory.
Definition at line 278 of file OgreHardwareBuffer.h. |
|
Lock the entire buffer for (potentially) reading / writing.
Definition at line 175 of file OgreHardwareBuffer.h. |
|
Override HardwareBuffer to turn off all shadowing.
Reimplemented from Ogre::HardwareBuffer. Definition at line 53 of file OgreDefaultHardwareBufferManager.cpp. References Ogre::HardwareBuffer::mIsLocked, and mpData. |
|
See HardwareBuffer.
Implements Ogre::HardwareBuffer. Definition at line 42 of file OgreDefaultHardwareBufferManager.cpp. References mpData. |
|
See HardwareBuffer.
Implements Ogre::HardwareBuffer. Definition at line 65 of file OgreDefaultHardwareBufferManager.cpp. References mpData, and Ogre::HardwareBuffer::mSizeInBytes. |
|
Pass true to suppress hardware upload of shadow buffer changes.
Definition at line 286 of file OgreHardwareBuffer.h. |
|
Override HardwareBuffer to turn off all shadowing.
Reimplemented from Ogre::HardwareBuffer. Definition at line 59 of file OgreDefaultHardwareBufferManager.cpp. References Ogre::HardwareBuffer::mIsLocked. |
|
See HardwareBuffer.
Implements Ogre::HardwareBuffer. Definition at line 48 of file OgreDefaultHardwareBufferManager.cpp. |
|
See HardwareBuffer.
Implements Ogre::HardwareBuffer. Definition at line 71 of file OgreDefaultHardwareBufferManager.cpp. References mpData, and Ogre::HardwareBuffer::mSizeInBytes. |
|
|
Definition at line 120 of file OgreHardwareBuffer.h. |
|
Definition at line 119 of file OgreHardwareBuffer.h. |
|
Definition at line 40 of file OgreHardwareVertexBuffer.h. Referenced by Ogre::HardwareVertexBuffer::HardwareVertexBuffer(). |
|
Definition at line 40 of file OgreDefaultHardwareBufferManager.h. Referenced by DefaultHardwareVertexBuffer(), lock(), lockImpl(), readData(), writeData(), and ~DefaultHardwareVertexBuffer(). |
|
|
Definition at line 124 of file OgreHardwareBuffer.h. |
|
|
Definition at line 125 of file OgreHardwareBuffer.h. |
|
Definition at line 121 of file OgreHardwareBuffer.h. |
|
Definition at line 117 of file OgreHardwareBuffer.h. Referenced by Ogre::GLHardwareVertexBuffer::lockImpl(), Ogre::GLHardwareIndexBuffer::lockImpl(), Ogre::D3D9HardwareVertexBuffer::lockImpl(), Ogre::D3D9HardwareIndexBuffer::lockImpl(), Ogre::GLHardwareVertexBuffer::writeData(), and Ogre::GLHardwareIndexBuffer::writeData(). |
|
Definition at line 122 of file OgreHardwareBuffer.h. |
|
Definition at line 41 of file OgreHardwareVertexBuffer.h. Referenced by Ogre::HardwareVertexBuffer::HardwareVertexBuffer(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Fri May 14 23:26:01 2004