Records the state of all the vertex buffer bindings required to provide a vertex declaration with the input data it needs for the vertex elements. More...
#include <OgreHardwareVertexBuffer.h>
Public Types | |
typedef map< ushort, ushort >::type | BindingIndexMap |
typedef map< unsigned short, HardwareVertexBufferSharedPtr > ::type | VertexBufferBindingMap |
Defines the vertex buffer bindings used as source for vertex declarations. More... | |
Public Member Functions | |
VertexBufferBinding () | |
Constructor, should not be called direct, use HardwareBufferManager::createVertexBufferBinding. More... | |
virtual | ~VertexBufferBinding () |
virtual void | closeGaps (BindingIndexMap &bindingIndexMap) |
Remove any gaps in the bindings. More... | |
virtual const VertexBufferBindingMap & | getBindings (void) const |
Gets a read-only version of the buffer bindings. More... | |
virtual const HardwareVertexBufferSharedPtr & | getBuffer (unsigned short index) const |
Gets the buffer bound to the given source index. More... | |
virtual size_t | getBufferCount (void) const |
virtual unsigned short | getLastBoundIndex (void) const |
Gets the last bound index. More... | |
virtual unsigned short | getNextIndex (void) const |
Gets the highest index which has already been set, plus 1. More... | |
virtual bool | hasGaps (void) const |
Check whether any gaps in the bindings. More... | |
virtual bool | hasInstanceData () const |
Returns true if this binding has an element that contains instance data. More... | |
virtual bool | isBufferBound (unsigned short index) const |
Gets whether a buffer is bound to the given source index. More... | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
void * | operator new[] (size_t sz) |
virtual void | setBinding (unsigned short index, const HardwareVertexBufferSharedPtr &buffer) |
Set a binding, associating a vertex buffer with a given index. More... | |
virtual void | unsetAllBindings (void) |
Removes all the bindings. More... | |
virtual void | unsetBinding (unsigned short index) |
Removes an existing binding. More... | |
Protected Attributes | |
VertexBufferBindingMap | mBindingMap |
unsigned short | mHighIndex |
Records the state of all the vertex buffer bindings required to provide a vertex declaration with the input data it needs for the vertex elements.
Definition at line 521 of file OgreHardwareVertexBuffer.h.
typedef map<ushort, ushort>::type Ogre::VertexBufferBinding::BindingIndexMap |
Definition at line 569 of file OgreHardwareVertexBuffer.h.
typedef map<unsigned short, HardwareVertexBufferSharedPtr>::type Ogre::VertexBufferBinding::VertexBufferBindingMap |
Defines the vertex buffer bindings used as source for vertex declarations.
Definition at line 525 of file OgreHardwareVertexBuffer.h.
Ogre::VertexBufferBinding::VertexBufferBinding | ( | ) |
Constructor, should not be called direct, use HardwareBufferManager::createVertexBufferBinding.
|
virtual |
|
virtual |
Remove any gaps in the bindings.
bindingIndexMap | To be retrieve the binding index map that used to translation old index to new index; will be cleared by this method before fill-in. |
|
virtual |
Gets a read-only version of the buffer bindings.
|
virtual |
Gets the buffer bound to the given source index.
|
inlinevirtual |
Definition at line 556 of file OgreHardwareVertexBuffer.h.
|
virtual |
Gets the last bound index.
|
inlinevirtual |
Gets the highest index which has already been set, plus 1.
Definition at line 563 of file OgreHardwareVertexBuffer.h.
|
virtual |
Check whether any gaps in the bindings.
|
virtual |
Returns true if this binding has an element that contains instance data.
|
virtual |
Gets whether a buffer is bound to the given source index.
|
inlineinherited |
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
virtual |
Set a binding, associating a vertex buffer with a given index.
|
virtual |
Removes all the bindings.
|
virtual |
Removes an existing binding.
|
protected |
Definition at line 527 of file OgreHardwareVertexBuffer.h.
|
mutableprotected |
Definition at line 528 of file OgreHardwareVertexBuffer.h.