#include <OgreHardwareVertexBuffer.h>
Public Types | |
typedef std::map< unsigned short, HardwareVertexBufferSharedPtr > | 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 | 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 bool | isBufferBound (unsigned short index) |
Gets whether a buffer is 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 |
Definition at line 462 of file OgreHardwareVertexBuffer.h.
|
Defines the vertex buffer bindings used as source for vertex declarations.
Definition at line 466 of file OgreHardwareVertexBuffer.h. |
|
Constructor, should not be called direct, use HardwareBufferManager::createVertexBufferBinding.
|
|
|
|
Gets a read-only version of the buffer bindings.
|
|
Gets the buffer bound to the given source index.
|
|
Definition at line 497 of file OgreHardwareVertexBuffer.h. |
|
Gets the highest index which has already been set, plus 1.
Definition at line 504 of file OgreHardwareVertexBuffer.h. |
|
Gets whether a buffer is bound to the given source index.
|
|
Set a binding, associating a vertex buffer with a given index.
|
|
Removes all the bindings.
|
|
Removes an existing binding.
|
|
Definition at line 468 of file OgreHardwareVertexBuffer.h. |
|
Definition at line 469 of file OgreHardwareVertexBuffer.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:39:17 2006