OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
A pose is a linked set of vertex offsets applying to one set of vertex data. More...
#include <OgrePose.h>
Public Types | |
typedef ConstMapIterator< NormalsMap > | ConstNormalsIterator |
An iterator over the vertex offsets. | |
typedef ConstMapIterator< VertexOffsetMap > | ConstVertexOffsetIterator |
An iterator over the vertex offsets. | |
typedef MapIterator< NormalsMap > | NormalsIterator |
An iterator over the vertex offsets. | |
typedef map< size_t, Vector3 >::type | NormalsMap |
A collection of normals based on the vertex index. | |
typedef MapIterator< VertexOffsetMap > | VertexOffsetIterator |
An iterator over the vertex offsets. | |
typedef map< size_t, Vector3 >::type | VertexOffsetMap |
A collection of vertex offsets based on the vertex index. | |
Public Member Functions | |
Pose (ushort target, const String &name=BLANKSTRING) | |
Constructor. | |
virtual | ~Pose () |
const HardwareVertexBufferSharedPtr & | _getHardwareVertexBuffer (const VertexData *origData) const |
Get a hardware vertex buffer version of the vertex offsets. | |
void | addVertex (size_t index, const Vector3 &offset) |
Adds an offset to a vertex for this pose. | |
void | addVertex (size_t index, const Vector3 &offset, const Vector3 &normal) |
Adds an offset to a vertex and a new normal for this pose. | |
void | clearVertices (void) |
Clear all vertices. | |
Pose * | clone (void) const |
Clone this pose and create another one configured exactly the same way (only really useful for cloning holders of this class). | |
bool | getIncludesNormals () const |
Return whether the pose vertices include normals. | |
const String & | getName (void) const |
Return the name of the pose (may be blank) | |
const NormalsMap & | getNormals (void) const |
Gets a const reference to the vertex offsets. | |
NormalsIterator | getNormalsIterator (void) |
Gets an iterator over all the vertex offsets. | |
ConstNormalsIterator | getNormalsIterator (void) const |
Gets an iterator over all the vertex offsets. | |
ushort | getTarget (void) const |
Return the target geometry index of the pose. | |
VertexOffsetIterator | getVertexOffsetIterator (void) |
Gets an iterator over all the vertex offsets. | |
ConstVertexOffsetIterator | getVertexOffsetIterator (void) const |
Gets an iterator over all the vertex offsets. | |
const VertexOffsetMap & | getVertexOffsets (void) const |
Gets a const reference to the vertex offsets. | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
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 *ptr) |
placement operator new | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void | removeVertex (size_t index) |
Remove a vertex offset. | |
A pose is a linked set of vertex offsets applying to one set of vertex data.
An iterator over the vertex offsets.
An iterator over the vertex offsets.
An iterator over the vertex offsets.
A collection of normals based on the vertex index.
An iterator over the vertex offsets.
A collection of vertex offsets based on the vertex index.
Ogre::v1::Pose::Pose | ( | ushort | target, |
const String & | name = BLANKSTRING |
||
) |
Constructor.
target | The target vertexdata index (0 for shared, 1+ for dedicated at the submesh index + 1) |
name | Optional name |
|
virtual |
const HardwareVertexBufferSharedPtr & Ogre::v1::Pose::_getHardwareVertexBuffer | ( | const VertexData * | origData | ) | const |
Get a hardware vertex buffer version of the vertex offsets.
Adds an offset to a vertex for this pose.
index | The vertex index |
offset | The position offset for this pose |
Adds an offset to a vertex and a new normal for this pose.
index | The vertex index |
offset | The position offset for this pose |
Clone this pose and create another one configured exactly the same way (only really useful for cloning holders of this class).
|
inline |
Return whether the pose vertices include normals.
Return the name of the pose (may be blank)
|
inline |
Gets a const reference to the vertex offsets.
NormalsIterator Ogre::v1::Pose::getNormalsIterator | ( | void | ) |
Gets an iterator over all the vertex offsets.
ConstNormalsIterator Ogre::v1::Pose::getNormalsIterator | ( | void | ) | const |
Gets an iterator over all the vertex offsets.
Return the target geometry index of the pose.
VertexOffsetIterator Ogre::v1::Pose::getVertexOffsetIterator | ( | void | ) |
Gets an iterator over all the vertex offsets.
ConstVertexOffsetIterator Ogre::v1::Pose::getVertexOffsetIterator | ( | void | ) | const |
Gets an iterator over all the vertex offsets.
|
inline |
Gets a const reference to the vertex offsets.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info