Assimp  v3.1.1 (June 2014)
Assimp::Ogre::VertexElement Class Reference

Public Types

Public Member Functions

size_t ComponentCount () const
 Count of components in this element, eg. VET_FLOAT3 return 3. More...
 
std::string SemanticToString ()
 Semantic as string. More...
 
size_t Size () const
 Size of the vertex element in bytes. More...
 
std::string TypeToString ()
 Type as string. More...
 
 VertexElement ()
 

Static Public Member Functions

static size_t ComponentCount (Type type)
 
static std::string SemanticToString (Semantic semantic)
 
static size_t TypeSize (Type type)
 
static std::string TypeToString (Type type)
 

Public Attributes

uint16_t index
 
uint16_t offset
 
Semantic semantic
 
uint16_t source
 
Type type
 

Member Enumeration Documentation

Vertex element semantics, used to identify the meaning of vertex buffer contents.

Enumerator
VES_POSITION 

Position, 3 reals per vertex.

VES_BLEND_WEIGHTS 

Blending weights.

VES_BLEND_INDICES 

Blending indices.

VES_NORMAL 

Normal, 3 reals per vertex.

VES_DIFFUSE 

Diffuse colours.

VES_SPECULAR 

Specular colours.

VES_TEXTURE_COORDINATES 

Texture coordinates.

VES_BINORMAL 

Binormal (Y axis if normal is Z)

VES_TANGENT 

Tangent (X axis if normal is Z)

VES_COUNT 

The number of VertexElementSemantic elements (note - the first value VES_POSITION is 1)

Vertex element type, used to identify the base types of the vertex contents.

Enumerator
VET_FLOAT1 
VET_FLOAT2 
VET_FLOAT3 
VET_FLOAT4 
VET_COLOUR 

alias to more specific colour type - use the current rendersystem's colour packing

VET_SHORT1 
VET_SHORT2 
VET_SHORT3 
VET_SHORT4 
VET_UBYTE4 
VET_COLOUR_ARGB 

D3D style compact colour.

VET_COLOUR_ABGR 

GL style compact colour.

VET_DOUBLE1 
VET_DOUBLE2 
VET_DOUBLE3 
VET_DOUBLE4 
VET_USHORT1 
VET_USHORT2 
VET_USHORT3 
VET_USHORT4 
VET_INT1 
VET_INT2 
VET_INT3 
VET_INT4 
VET_UINT1 
VET_UINT2 
VET_UINT3 
VET_UINT4 

Constructor & Destructor Documentation

Assimp::Ogre::VertexElement::VertexElement ( )

Member Function Documentation

size_t Assimp::Ogre::VertexElement::ComponentCount ( ) const

Count of components in this element, eg. VET_FLOAT3 return 3.

size_t Assimp::Ogre::VertexElement::ComponentCount ( Type  type)
static
std::string Assimp::Ogre::VertexElement::SemanticToString ( )

Semantic as string.

std::string Assimp::Ogre::VertexElement::SemanticToString ( Semantic  semantic)
static
size_t Assimp::Ogre::VertexElement::Size ( ) const

Size of the vertex element in bytes.

size_t Assimp::Ogre::VertexElement::TypeSize ( Type  type)
static
std::string Assimp::Ogre::VertexElement::TypeToString ( )

Type as string.

std::string Assimp::Ogre::VertexElement::TypeToString ( Type  type)
static

Member Data Documentation

uint16_t Assimp::Ogre::VertexElement::index
uint16_t Assimp::Ogre::VertexElement::offset
Semantic Assimp::Ogre::VertexElement::semantic
uint16_t Assimp::Ogre::VertexElement::source
Type Assimp::Ogre::VertexElement::type

The documentation for this class was generated from the following files: