#include <OgreHardwareVertexBuffer.h>
Public Types | |
typedef std::map< unsigned short, HardwareVertexBufferSharedPtr > | VertexBufferBindingMap |
Defines the vertex buffer bindings used as source for vertex declarations. | |
Public Methods | |
VertexBufferBinding () | |
Constructor, should not be called direct, use HardwareBufferManager::createVertexBufferBinding. | |
virtual | ~VertexBufferBinding () |
virtual void | setBinding (unsigned short index, HardwareVertexBufferSharedPtr buffer) |
Set a binding, associating a vertex buffer with a given index. | |
virtual void | unsetBinding (unsigned short index) |
Removes an existing binding. | |
virtual void | unsetAllBindings (void) |
Removes all the bindings. | |
virtual const VertexBufferBindingMap & | getBindings (void) const |
Gets a read-only version of the buffer bindings. | |
virtual HardwareVertexBufferSharedPtr | getBuffer (unsigned short index) |
Gets the buffer bound to the given source index. | |
virtual unsigned short | getNextIndex (void) const |
Gets the highest index which has already been set, plus 1. | |
Protected Attributes | |
VertexBufferBindingMap | mBindingMap |
unsigned short | mHighIndex |
Like the other classes in this functional area, these binding maps should be created and destroyed using the HardwareBufferManager.
Definition at line 368 of file OgreHardwareVertexBuffer.h.
|
Defines the vertex buffer bindings used as source for vertex declarations.
Definition at line 372 of file OgreHardwareVertexBuffer.h. |
|
Constructor, should not be called direct, use HardwareBufferManager::createVertexBufferBinding.
Definition at line 328 of file OgreHardwareVertexBuffer.cpp. |
|
Definition at line 332 of file OgreHardwareVertexBuffer.cpp. References unsetAllBindings(). |
|
Gets a read-only version of the buffer bindings.
Definition at line 363 of file OgreHardwareVertexBuffer.cpp. References mBindingMap. Referenced by Ogre::D3DRenderSystem::_render(), Ogre::VertexData::clone(), and Ogre::D3D9RenderSystem::setVertexBufferBinding(). |
|
|
Gets the highest index which has already been set, plus 1.
Definition at line 406 of file OgreHardwareVertexBuffer.h. Referenced by Ogre::Mesh::compileBoneAssignments(), Ogre::Mesh::getTangentsBuffer(), and Ogre::VertexData::prepareForShadowVolume(). |
|
|
Removes all the bindings.
Definition at line 357 of file OgreHardwareVertexBuffer.cpp. References mBindingMap. Referenced by ~VertexBufferBinding(). |
|
Removes an existing binding.
Definition at line 345 of file OgreHardwareVertexBuffer.cpp. References Except, and mBindingMap. Referenced by Ogre::Entity::cloneVertexDataRemoveBlendInfo(), Ogre::Mesh::compileBoneAssignments(), and Ogre::Mesh::getTangentsBuffer(). |
|
Definition at line 374 of file OgreHardwareVertexBuffer.h. Referenced by getBindings(), getBuffer(), setBinding(), unsetAllBindings(), and unsetBinding(). |
|
Definition at line 375 of file OgreHardwareVertexBuffer.h. Referenced by setBinding(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Fri May 14 23:27:27 2004