Assimp
v4.1. (December 2018)
|
Public Types | |
enum | Semantic { VES_POSITION = 1, VES_BLEND_WEIGHTS = 2, VES_BLEND_INDICES = 3, VES_NORMAL = 4, VES_DIFFUSE = 5, VES_SPECULAR = 6, VES_TEXTURE_COORDINATES = 7, VES_BINORMAL = 8, VES_TANGENT = 9, VES_COUNT = 9 } |
Vertex element semantics, used to identify the meaning of vertex buffer contents. More... | |
enum | Type { VET_FLOAT1 = 0, VET_FLOAT2 = 1, VET_FLOAT3 = 2, VET_FLOAT4 = 3, VET_COLOUR = 4, VET_SHORT1 = 5, VET_SHORT2 = 6, VET_SHORT3 = 7, VET_SHORT4 = 8, VET_UBYTE4 = 9, VET_COLOUR_ARGB = 10, VET_COLOUR_ABGR = 11, VET_DOUBLE1 = 12, VET_DOUBLE2 = 13, VET_DOUBLE3 = 14, VET_DOUBLE4 = 15, VET_USHORT1 = 16, VET_USHORT2 = 17, VET_USHORT3 = 18, VET_USHORT4 = 19, VET_INT1 = 20, VET_INT2 = 21, VET_INT3 = 22, VET_INT4 = 23, VET_UINT1 = 24, VET_UINT2 = 25, VET_UINT3 = 26, VET_UINT4 = 27 } |
Vertex element type, used to identify the base types of the vertex contents. More... | |
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 |
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.
Assimp::Ogre::VertexElement::VertexElement | ( | ) |
size_t Assimp::Ogre::VertexElement::ComponentCount | ( | ) | const |
Count of components in this element, eg. VET_FLOAT3 return 3.
|
static |
std::string Assimp::Ogre::VertexElement::SemanticToString | ( | ) |
Semantic as string.
|
static |
size_t Assimp::Ogre::VertexElement::Size | ( | ) | const |
Size of the vertex element in bytes.
|
static |
std::string Assimp::Ogre::VertexElement::TypeToString | ( | ) |
Type as string.
|
static |
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 |