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< unsigned short, HardwareVertexBufferSharedPtr > ::type | VertexBufferBindingMap |
Defines the vertex buffer bindings used as source for vertex declarations. | |
typedef map< ushort, ushort >::type | BindingIndexMap |
Public Member Functions | |
VertexBufferBinding () | |
Constructor, should not be called direct, use HardwareBufferManager::createVertexBufferBinding. | |
virtual | ~VertexBufferBinding () |
virtual void | setBinding (unsigned short index, const 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 const HardwareVertexBufferSharedPtr & | getBuffer (unsigned short index) const |
Gets the buffer bound to the given source index. | |
virtual bool | isBufferBound (unsigned short index) const |
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. | |
virtual unsigned short | getLastBoundIndex (void) const |
Gets the last bound index. | |
virtual bool | hasGaps (void) const |
Check whether any gaps in the bindings. | |
virtual void | closeGaps (BindingIndexMap &bindingIndexMap) |
Remove any gaps in the bindings. | |
virtual bool | getHasInstanceData () const |
returns true if has an element that is instance data | |
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 * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void * | operator new[] (size_t sz) |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
Protected Attributes | |
VertexBufferBindingMap | mBindingMap |
unsigned short | mHighIndex |
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.
Definition at line 501 of file OgreHardwareVertexBuffer.h.
typedef map<ushort, ushort>::type Ogre::VertexBufferBinding::BindingIndexMap |
Definition at line 549 of file OgreHardwareVertexBuffer.h.
typedef map<unsigned short, HardwareVertexBufferSharedPtr>::type Ogre::VertexBufferBinding::VertexBufferBindingMap |
Defines the vertex buffer bindings used as source for vertex declarations.
Definition at line 505 of file OgreHardwareVertexBuffer.h.
Ogre::VertexBufferBinding::VertexBufferBinding | ( | ) |
Constructor, should not be called direct, use HardwareBufferManager::createVertexBufferBinding.
virtual Ogre::VertexBufferBinding::~VertexBufferBinding | ( | ) | [virtual] |
virtual void Ogre::VertexBufferBinding::closeGaps | ( | BindingIndexMap & | bindingIndexMap | ) | [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 const VertexBufferBindingMap& Ogre::VertexBufferBinding::getBindings | ( | void | ) | const [virtual] |
Gets a read-only version of the buffer bindings.
virtual const HardwareVertexBufferSharedPtr& Ogre::VertexBufferBinding::getBuffer | ( | unsigned short | index | ) | const [virtual] |
Gets the buffer bound to the given source index.
virtual size_t Ogre::VertexBufferBinding::getBufferCount | ( | void | ) | const [virtual] |
Definition at line 536 of file OgreHardwareVertexBuffer.h.
virtual bool Ogre::VertexBufferBinding::getHasInstanceData | ( | ) | const [virtual] |
returns true if has an element that is instance data
virtual unsigned short Ogre::VertexBufferBinding::getLastBoundIndex | ( | void | ) | const [virtual] |
Gets the last bound index.
virtual unsigned short Ogre::VertexBufferBinding::getNextIndex | ( | void | ) | const [virtual] |
Gets the highest index which has already been set, plus 1.
Definition at line 543 of file OgreHardwareVertexBuffer.h.
virtual bool Ogre::VertexBufferBinding::hasGaps | ( | void | ) | const [virtual] |
Check whether any gaps in the bindings.
virtual bool Ogre::VertexBufferBinding::isBufferBound | ( | unsigned short | index | ) | const [virtual] |
Gets whether a buffer is bound to the given source index.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
void * | ||||
) | [inherited] |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) | [inherited] |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 118 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) | [inherited] |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
void * | ptr | |||
) | [inherited] |
placement operator new
Definition at line 78 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) | [inherited] |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
operator new, with debug line info
Definition at line 67 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) | [inherited] |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
array operator new, with debug line info
Definition at line 85 of file OgreMemoryAllocatedObject.h.
virtual void Ogre::VertexBufferBinding::setBinding | ( | unsigned short | index, | |
const HardwareVertexBufferSharedPtr & | buffer | |||
) | [virtual] |
Set a binding, associating a vertex buffer with a given index.
virtual void Ogre::VertexBufferBinding::unsetAllBindings | ( | void | ) | [virtual] |
Removes all the bindings.
virtual void Ogre::VertexBufferBinding::unsetBinding | ( | unsigned short | index | ) | [virtual] |
Removes an existing binding.
Definition at line 507 of file OgreHardwareVertexBuffer.h.
unsigned short Ogre::VertexBufferBinding::mHighIndex [mutable, protected] |
Definition at line 508 of file OgreHardwareVertexBuffer.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:37:38 2012