OGRE-Next
3.0.0
Object-Oriented Graphics Rendering Engine
|
#include <OgreVertexBufferPacked.h>
Public Member Functions | |
VertexElement2 (VertexElementType type, VertexElementSemantic semantic) | |
bool | operator< (const VertexElement2 &_r) const |
Warning: Beware a VertexElement2Vec shouldn't be sorted. More... | |
bool | operator== (const VertexElement2 _r) const |
bool | operator== (VertexElementSemantic semantic) const |
Public Attributes | |
uint32 | mInstancingStepRate |
The number of instances to draw using the same per-instance data before advancing in the buffer by one element. More... | |
VertexElementSemantic | mSemantic |
The meaning of the element. More... | |
VertexElementType | mType |
The type of element. More... | |
|
inline |
|
inline |
Warning: Beware a VertexElement2Vec shouldn't be sorted.
The order in which they're pushed into the vector defines the offsets in the vertex buffer. Altering the order would cause the GPU to to read garbage when trying to interpret the vertex buffer This operator exists because it's useful when implementing a '<' operator in other structs that contain VertexElement2Vecs (see HlmsPso)
References mInstancingStepRate, mSemantic, and mType.
|
inline |
References mInstancingStepRate, mSemantic, and mType.
|
inline |
References mSemantic.
uint32 Ogre::VertexElement2::mInstancingStepRate |
The number of instances to draw using the same per-instance data before advancing in the buffer by one element.
This value must be 0 for an element that contains per-vertex data
Referenced by operator<(), and operator==().
VertexElementSemantic Ogre::VertexElement2::mSemantic |
The meaning of the element.
Referenced by operator<(), and operator==().
VertexElementType Ogre::VertexElement2::mType |
The type of element.
Referenced by Ogre::VertexBufferDownloadHelper::getNormal(), Ogre::VertexBufferDownloadHelper::getVector4(), operator<(), and operator==().