![]() |
OGRE 1.12.10
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>
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. | |
Public Member Functions | |
VertexBufferBinding () | |
Constructor, should not be called direct, use HardwareBufferManager::createVertexBufferBinding. | |
~VertexBufferBinding () | |
void | closeGaps (BindingIndexMap &bindingIndexMap) |
Remove any gaps in the bindings. | |
const VertexBufferBindingMap & | getBindings (void) const |
Gets a read-only version of the buffer bindings. | |
const HardwareVertexBufferSharedPtr & | getBuffer (unsigned short index) const |
Gets the buffer bound to the given source index. | |
size_t | getBufferCount (void) const |
unsigned short | getLastBoundIndex (void) const |
Gets the last bound index. | |
unsigned short | getNextIndex (void) const |
Gets the highest index which has already been set, plus 1. | |
bool | hasGaps (void) const |
Check whether any gaps in the bindings. | |
bool | hasInstanceData () const |
Returns true if this binding has an element that contains instance data. | |
bool | isBufferBound (unsigned short index) const |
Gets whether a buffer is bound to the given source index. | |
void | setBinding (unsigned short index, const HardwareVertexBufferSharedPtr &buffer) |
Set a binding, associating a vertex buffer with a given index. | |
void | unsetAllBindings (void) |
Removes all the bindings. | |
void | unsetBinding (unsigned short index) |
Removes an existing binding. | |
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.
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.
const VertexBufferBindingMap & Ogre::VertexBufferBinding::getBindings | ( | void | ) | const |
Gets a read-only version of the buffer bindings.
const HardwareVertexBufferSharedPtr & Ogre::VertexBufferBinding::getBuffer | ( | unsigned short | index | ) | const |
Gets the buffer bound to the given source index.
Gets whether a buffer is bound to the given source index.
Gets the highest index which has already been set, plus 1.
Gets the last bound index.
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.