![]() |
OGRE
1.10.11
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 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... | |
~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 |
bool | getHasInstanceData () const |
Returns true if this binding has an element that contains instance data. More... | |
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 | 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 map<unsigned short, HardwareVertexBufferSharedPtr>::type Ogre::VertexBufferBinding::VertexBufferBindingMap |
Defines the vertex buffer bindings used as source for vertex declarations.
typedef map<ushort, ushort>::type 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. |
bool Ogre::VertexBufferBinding::getHasInstanceData | ( | ) | const |
Returns true if this binding has an element that contains instance data.