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>
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.
- Like the other classes in this functional area, these binding maps should be created and destroyed using the HardwareBufferManager.
◆ VertexBufferBindingMap
Defines the vertex buffer bindings used as source for vertex declarations.
◆ BindingIndexMap
◆ VertexBufferBinding()
Ogre::VertexBufferBinding::VertexBufferBinding |
( |
| ) |
|
◆ ~VertexBufferBinding()
Ogre::VertexBufferBinding::~VertexBufferBinding |
( |
| ) |
|
◆ setBinding()
◆ unsetBinding()
void Ogre::VertexBufferBinding::unsetBinding |
( |
unsigned short |
index | ) |
|
Removes an existing binding.
◆ unsetAllBindings()
void Ogre::VertexBufferBinding::unsetAllBindings |
( |
void |
| ) |
|
Removes all the bindings.
◆ getBindings()
◆ getBuffer()
Gets the buffer bound to the given source index.
◆ isBufferBound()
bool Ogre::VertexBufferBinding::isBufferBound |
( |
unsigned short |
index | ) |
const |
Gets whether a buffer is bound to the given source index.
◆ getBufferCount()
size_t Ogre::VertexBufferBinding::getBufferCount |
( |
void |
| ) |
const |
|
inline |
◆ getNextIndex()
unsigned short Ogre::VertexBufferBinding::getNextIndex |
( |
void |
| ) |
const |
|
inline |
Gets the highest index which has already been set, plus 1.
◆ getLastBoundIndex()
unsigned short Ogre::VertexBufferBinding::getLastBoundIndex |
( |
void |
| ) |
const |
Gets the last bound index.
◆ hasGaps()
bool Ogre::VertexBufferBinding::hasGaps |
( |
void |
| ) |
const |
Check whether any gaps in the bindings.
◆ closeGaps()
void Ogre::VertexBufferBinding::closeGaps |
( |
BindingIndexMap & |
bindingIndexMap | ) |
|
Remove any gaps in the bindings.
- Parameters
-
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. |
◆ getHasInstanceData()
bool Ogre::VertexBufferBinding::getHasInstanceData |
( |
| ) |
const |
Returns true if this binding has an element that contains instance data.
The documentation for this class was generated from the following file: