#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 size_t | getBufferCount (void) const |
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 429 of file OgreHardwareVertexBuffer.h.
|
Defines the vertex buffer bindings used as source for vertex declarations.
Definition at line 433 of file OgreHardwareVertexBuffer.h. |
|
Constructor, should not be called direct, use HardwareBufferManager::createVertexBufferBinding.
Definition at line 468 of file OgreHardwareVertexBuffer.cpp. |
|
Definition at line 472 of file OgreHardwareVertexBuffer.cpp. References unsetAllBindings(). |
|
Gets a read-only version of the buffer bindings.
Definition at line 503 of file OgreHardwareVertexBuffer.cpp. References mBindingMap. Referenced by Ogre::D3DRenderSystem::_render(), Ogre::VertexData::clone(), Ogre::D3D9RenderSystem::setVertexBufferBinding(), and Ogre::MeshSerializerImpl::writeGeometry(). |
|
|
Definition at line 462 of file OgreHardwareVertexBuffer.h. |
|
Gets the highest index which has already been set, plus 1.
Definition at line 469 of file OgreHardwareVertexBuffer.h. Referenced by Ogre::Mesh::compileBoneAssignments(), and Ogre::VertexData::prepareForShadowVolume(). |
|
|
Removes all the bindings.
Definition at line 497 of file OgreHardwareVertexBuffer.cpp. References mBindingMap. Referenced by ~VertexBufferBinding(). |
|
Removes an existing binding.
Definition at line 485 of file OgreHardwareVertexBuffer.cpp. References Except, and mBindingMap. Referenced by Ogre::Entity::cloneVertexDataRemoveBlendInfo(), and Ogre::Mesh::compileBoneAssignments(). |
|
Definition at line 435 of file OgreHardwareVertexBuffer.h. Referenced by getBindings(), getBuffer(), setBinding(), unsetAllBindings(), and unsetBinding(). |
|
Definition at line 436 of file OgreHardwareVertexBuffer.h. Referenced by setBinding(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:51:46 2004