![]() |
OGRE
1.12.12
Object-Oriented Graphics Rendering Engine
|
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>
Inheritance diagram for Ogre::VertexBufferBinding:Public Types | |
| typedef std::map< ushort, ushort > | BindingIndexMap |
| typedef std::map< unsigned short, HardwareVertexBufferSharedPtr > | 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... | |
| ~VertexBufferBinding () | |
| void | closeGaps (BindingIndexMap &bindingIndexMap) |
| Remove any gaps in the bindings. More... | |
| const VertexBufferBindingMap & | getBindings (void) const |
| Gets a read-only version of the buffer bindings. More... | |
| const HardwareVertexBufferSharedPtr & | getBuffer (unsigned short index) const |
| Gets the buffer bound to the given source index. More... | |
| size_t | getBufferCount (void) const |
| unsigned short | getLastBoundIndex (void) const |
| Gets the last bound index. More... | |
| unsigned short | getNextIndex (void) const |
| Gets the highest index which has already been set, plus 1. More... | |
| bool | hasGaps (void) const |
| Check whether any gaps in the bindings. More... | |
| bool | hasInstanceData () const |
| Returns true if this binding has an element that contains instance data. More... | |
| bool | isBufferBound (unsigned short index) const |
| Gets whether a buffer is bound to the given source index. More... | |
| void | setBinding (unsigned short index, const HardwareVertexBufferSharedPtr &buffer) |
| Set a binding, associating a vertex buffer with a given index. More... | |
| void | unsetAllBindings (void) |
| Removes all the bindings. More... | |
| void | unsetBinding (unsigned short index) |
| Removes an existing binding. More... | |
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.
| typedef std::map<unsigned short, HardwareVertexBufferSharedPtr> Ogre::VertexBufferBinding::VertexBufferBindingMap |
Defines the vertex buffer bindings used as source for vertex declarations.
| typedef std::map<ushort, ushort> Ogre::VertexBufferBinding::BindingIndexMap |
| Ogre::VertexBufferBinding::VertexBufferBinding | ( | ) |
Constructor, should not be called direct, use HardwareBufferManager::createVertexBufferBinding.
| Ogre::VertexBufferBinding::~VertexBufferBinding | ( | ) |
| void Ogre::VertexBufferBinding::setBinding | ( | unsigned short | index, |
| const HardwareVertexBufferSharedPtr & | buffer | ||
| ) |
Set a binding, associating a vertex buffer with a given index.
Referenced by Ogre::Lod0Stripifier::~Lod0Stripifier().
| void Ogre::VertexBufferBinding::unsetBinding | ( | unsigned short | index | ) |
Removes an existing binding.
| void Ogre::VertexBufferBinding::unsetAllBindings | ( | void | ) |
Removes all the bindings.
| const VertexBufferBindingMap& Ogre::VertexBufferBinding::getBindings | ( | void | ) | const |
Gets a read-only version of the buffer bindings.
Referenced by Ogre::Lod0Stripifier::~Lod0Stripifier().
| const HardwareVertexBufferSharedPtr& Ogre::VertexBufferBinding::getBuffer | ( | unsigned short | index | ) | const |
Gets the buffer bound to the given source index.
| bool Ogre::VertexBufferBinding::isBufferBound | ( | unsigned short | index | ) | const |
Gets whether a buffer is bound to the given source index.
|
inline |
|
inline |
Gets the highest index which has already been set, plus 1.
| unsigned short Ogre::VertexBufferBinding::getLastBoundIndex | ( | void | ) | const |
Gets the last bound index.
| bool Ogre::VertexBufferBinding::hasGaps | ( | void | ) | const |
Check whether any gaps in the bindings.
| void Ogre::VertexBufferBinding::closeGaps | ( | BindingIndexMap & | bindingIndexMap | ) |
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. |
|
inline |
Returns true if this binding has an element that contains instance data.