#include <OgreGLHardwareIndexBuffer.h>
Inheritance diagram for Ogre::GLHardwareIndexBuffer:
Public Types | |
enum | IndexType { IT_16BIT, IT_32BIT } |
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 | |
GLHardwareIndexBuffer (IndexType idxType, size_t numIndexes, HardwareBuffer::Usage usage, bool useShadowBuffer) | |
~GLHardwareIndexBuffer () | |
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. | |
GLuint | getGLBufferId (void) const |
IndexType | getType (void) const |
Get the type of indexes used in this buffer. | |
size_t | getNumIndexes (void) const |
Get the number of indexes in this buffer. | |
size_t | getIndexSize (void) const |
Get the size in bytes of each index. | |
virtual void * | lock (size_t offset, size_t length, LockOptions options) |
Lock the buffer for (potentially) reading / writing. | |
void * | lock (LockOptions options) |
Lock the entire buffer for (potentially) reading / writing. | |
virtual void | unlock (void) |
Releases the lock on this buffer. | |
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 | isLocked (void) const |
Returns whether or not this buffer is currently locked. | |
Protected Methods | |
void * | lockImpl (size_t offset, size_t length, LockOptions options) |
See HardwareBuffer. | |
void | unlockImpl (void) |
See HardwareBuffer. | |
Protected Attributes | |
IndexType | mIndexType |
size_t | mNumIndexes |
size_t | mIndexSize |
size_t | mSizeInBytes |
Usage | mUsage |
bool | mIsLocked |
size_t | mLockStart |
size_t | mLockSize |
bool | mSystemMemory |
bool | mUseShadowBuffer |
HardwareBuffer * | mpShadowBuffer |
bool | mShadowUpdated |
Private Attributes | |
GLuint | mBufferId |
|
Definition at line 39 of file OgreHardwareIndexBuffer.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 32 of file OgreGLHardwareIndexBuffer.cpp. References Except, glBindBufferARB_ptr, glBufferDataARB_ptr, glGenBuffersARB_ptr, mBufferId, and Ogre::HardwareBuffer::mSizeInBytes. |
|
Definition at line 54 of file OgreGLHardwareIndexBuffer.cpp. References glDeleteBuffersARB_ptr, and mBufferId. |
|
Updates the real buffer from the shadow buffer, if required.
Definition at line 247 of file OgreHardwareBuffer.h. References Ogre::HardwareBuffer::lockImpl(), and Ogre::HardwareBuffer::unlockImpl(). |
|
Copy data from another buffer into this one.
Definition at line 237 of file OgreHardwareBuffer.h. References Ogre::HardwareBuffer::lock(), and Ogre::HardwareBuffer::unlock(). |
|
Definition at line 53 of file OgreGLHardwareIndexBuffer.h. References mBufferId. |
|
Get the size in bytes of each index.
Definition at line 59 of file OgreHardwareIndexBuffer.h. |
|
Get the number of indexes in this buffer.
Definition at line 57 of file OgreHardwareIndexBuffer.h. |
|
Returns the size of this buffer in bytes.
Definition at line 272 of file OgreHardwareBuffer.h. |
|
Get the type of indexes used in this buffer.
Definition at line 55 of file OgreHardwareIndexBuffer.h. |
|
Returns the Usage flags with which this buffer was created.
Definition at line 274 of file OgreHardwareBuffer.h. |
|
Returns whether or not this buffer is currently locked.
Definition at line 278 of file OgreHardwareBuffer.h. Referenced by Ogre::HardwareBuffer::unlock(). |
|
Returns whether this buffer is held in system memory.
Definition at line 276 of file OgreHardwareBuffer.h. |
|
Lock the entire buffer for (potentially) reading / writing.
Definition at line 173 of file OgreHardwareBuffer.h. |
|
Lock the buffer for (potentially) reading / writing.
Reimplemented in Ogre::DefaultHardwareVertexBuffer, Ogre::DefaultHardwareIndexBuffer, Ogre::GLDefaultHardwareVertexBuffer, and Ogre::GLDefaultHardwareIndexBuffer. Definition at line 143 of file OgreHardwareBuffer.h. Referenced by Ogre::HardwareBuffer::copyData(), Ogre::D3D9HardwareVertexBuffer::readData(), Ogre::D3D9HardwareIndexBuffer::readData(), Ogre::D3D9HardwareVertexBuffer::writeData(), and Ogre::D3D9HardwareIndexBuffer::writeData(). |
|
|
See HardwareBuffer.
Implements Ogre::HardwareBuffer. Definition at line 132 of file OgreGLHardwareIndexBuffer.cpp. References glBindBufferARB_ptr, glGetBufferSubDataARB_ptr, and mBufferId. |
|
Releases the lock on this buffer.
Reimplemented in Ogre::DefaultHardwareVertexBuffer, Ogre::DefaultHardwareIndexBuffer, Ogre::GLDefaultHardwareVertexBuffer, and Ogre::GLDefaultHardwareIndexBuffer. Definition at line 189 of file OgreHardwareBuffer.h. References Ogre::HardwareBuffer::isLocked(). Referenced by Ogre::HardwareBuffer::copyData(), Ogre::D3D9HardwareVertexBuffer::readData(), Ogre::D3D9HardwareIndexBuffer::readData(), Ogre::D3D9HardwareVertexBuffer::writeData(), and Ogre::D3D9HardwareIndexBuffer::writeData(). |
|
See HardwareBuffer.
Implements Ogre::HardwareBuffer. Definition at line 118 of file OgreGLHardwareIndexBuffer.cpp. References Except, glBindBufferARB_ptr, glUnmapBufferARB_ptr, mBufferId, and Ogre::HardwareBuffer::mIsLocked. |
|
See HardwareBuffer.
Implements Ogre::HardwareBuffer. Definition at line 139 of file OgreGLHardwareIndexBuffer.cpp. References glBindBufferARB_ptr, glBufferDataARB_ptr, glBufferSubDataARB_ptr, mBufferId, Ogre::HardwareBuffer::mSizeInBytes, and Ogre::HardwareBuffer::mUsage. |
|
Definition at line 37 of file OgreGLHardwareIndexBuffer.h. Referenced by getGLBufferId(), GLHardwareIndexBuffer(), lockImpl(), readData(), unlockImpl(), writeData(), and ~GLHardwareIndexBuffer(). |
|
Definition at line 47 of file OgreHardwareIndexBuffer.h. Referenced by Ogre::HardwareIndexBuffer::HardwareIndexBuffer(). |
|
Definition at line 45 of file OgreHardwareIndexBuffer.h. Referenced by Ogre::HardwareIndexBuffer::HardwareIndexBuffer(). |
|
|
Definition at line 120 of file OgreHardwareBuffer.h. |
|
Definition at line 119 of file OgreHardwareBuffer.h. |
|
Definition at line 46 of file OgreHardwareIndexBuffer.h. Referenced by Ogre::HardwareIndexBuffer::HardwareIndexBuffer(). |
|
Definition at line 123 of file OgreHardwareBuffer.h. Referenced by Ogre::HardwareIndexBuffer::HardwareIndexBuffer(), Ogre::HardwareVertexBuffer::HardwareVertexBuffer(), Ogre::HardwareIndexBuffer::~HardwareIndexBuffer(), and Ogre::HardwareVertexBuffer::~HardwareVertexBuffer(). |
|
Definition at line 124 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(), lockImpl(), Ogre::D3D9HardwareVertexBuffer::lockImpl(), Ogre::D3D9HardwareIndexBuffer::lockImpl(), Ogre::GLHardwareVertexBuffer::writeData(), and writeData(). |
|
Definition at line 122 of file OgreHardwareBuffer.h. |
Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:12:34 2004