#include <kanzi/rendering/graphics_enums.hpp>
Public Types | |
enum | Semantic { SemanticPosition, SemanticNormal, SemanticTangent, SemanticTextureCoordinate, SemanticColor, SemanticWeight, SemanticMatrixPalette, SemanticCount, SemanticCustom, SemanticInvalid } |
Vertex attribute enumeration for engine. More... | |
enum | SemanticBit { SemanticBitPosition, SemanticBitNornaml, SemanticBitTangent, SemanticBitTextureCoordinate, SemanticBitColor, SemanticBitWeight, SemanticBitMatrixPalette } |
Public Member Functions | |
VertexAttribute () | |
VertexAttribute (const string &name_, Semantic semantic_, GraphicsDataType dataType_, unsigned int dimension_, unsigned int offset_) | |
Public Attributes | |
string | name |
Name of the attribute. More... | |
Semantic | semantic |
Attribute semantic. More... | |
GraphicsDataType | dataType |
Attribute data type. More... | |
unsigned int | dimension |
Attribute dimension. More... | |
unsigned int | offset |
Attribute offset. More... | |
Vertex attribute enumeration for engine.
Enumerator | |
---|---|
SemanticPosition |
Position. |
SemanticNormal |
Normal. |
SemanticTangent |
Tangent. |
SemanticTextureCoordinate |
Texture coordinate. |
SemanticColor |
Color. |
SemanticWeight |
Weight. |
SemanticMatrixPalette |
Matrix palette. |
SemanticCount |
Number of fixed vertex attribute semantics. |
SemanticCustom |
Custom attribute. |
SemanticInvalid |
|
inlineexplicit |
|
inlineexplicit |
string kanzi::VertexAttribute::name |
Name of the attribute.
Not currently used.
GraphicsDataType kanzi::VertexAttribute::dataType |
Attribute data type.
unsigned int kanzi::VertexAttribute::dimension |
Attribute dimension.
unsigned int kanzi::VertexAttribute::offset |
Attribute offset.
This equals to offset of previous attribute + the size of it.