#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 338 of file OgreHardwareVertexBuffer.h.
|
Defines the vertex buffer bindings used as source for vertex declarations.
Definition at line 342 of file OgreHardwareVertexBuffer.h. |
|
Constructor, should not be called direct, use HardwareBufferManager::createVertexBufferBinding.
Definition at line 291 of file OgreHardwareVertexBuffer.cpp. |
|
Definition at line 295 of file OgreHardwareVertexBuffer.cpp. References unsetAllBindings(). |
|
Gets a read-only version of the buffer bindings.
Definition at line 326 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 376 of file OgreHardwareVertexBuffer.h. Referenced by Ogre::Mesh::compileBoneAssignmentsHardware(), and Ogre::Mesh::getTangentsBuffer(). |
|
|
Removes all the bindings.
Definition at line 320 of file OgreHardwareVertexBuffer.cpp. References mBindingMap. Referenced by ~VertexBufferBinding(). |
|
Removes an existing binding.
Definition at line 308 of file OgreHardwareVertexBuffer.cpp. References Except, and mBindingMap. Referenced by Ogre::Mesh::getTangentsBuffer(). |
|
Definition at line 344 of file OgreHardwareVertexBuffer.h. Referenced by getBindings(), getBuffer(), setBinding(), unsetAllBindings(), and unsetBinding(). |
|
Definition at line 345 of file OgreHardwareVertexBuffer.h. Referenced by setBinding(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:21:13 2004