![]() |
OGRE 2.1
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< unsignedshort, HardwareVertexBufferSharedPtr >::type | 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. | |
virtual | ~VertexBufferBinding () |
virtual void | closeGaps (BindingIndexMap &bindingIndexMap) |
Remove any gaps in the bindings. | |
virtual const VertexBufferBindingMap & | getBindings (void) const |
Gets a read-only version of the buffer bindings. | |
virtual const HardwareVertexBufferSharedPtr & | getBuffer (unsigned short index) const |
Gets the buffer bound to the given source index. | |
virtual size_t | getBufferCount (void) const |
virtual bool | getHasInstanceData () const |
Returns true if this binding has an element that contains instance data. | |
virtual unsigned short | getLastBoundIndex (void) const |
Gets the last bound index. | |
virtual unsigned short | getNextIndex (void) const |
Gets the highest index which has already been set, plus 1. | |
virtual bool | hasGaps (void) const |
Check whether any gaps in the bindings. | |
virtual bool | isBufferBound (unsigned short index) const |
Gets whether a buffer is bound to the given source index. | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
virtual void | setBinding (unsigned short index, const HardwareVertexBufferSharedPtr &buffer) |
Set a binding, associating a vertex buffer with a given index. | |
virtual void | unsetAllBindings (void) |
Removes all the bindings. | |
virtual 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 map<unsignedshort,HardwareVertexBufferSharedPtr>::type Ogre::v1::VertexBufferBinding::VertexBufferBindingMap |
Defines the vertex buffer bindings used as source for vertex declarations.
Ogre::v1::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.
Returns true if this binding has an element that contains instance data.
Gets the last bound index.
Gets the highest index which has already been set, plus 1.
Check whether any gaps in the bindings.
Gets whether a buffer is bound to the given source index.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
|
virtual |
Set a binding, associating a vertex buffer with a given index.
Removes all the bindings.
Removes an existing binding.