All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
kanzi::VertexAttribute Class Reference

#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...
 

Member Enumeration Documentation

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 
Enumerator
SemanticBitPosition 

Positions for vertex array.

SemanticBitNornaml 

Normals for vertex array.

SemanticBitTangent 

Tangents for vertex array.

SemanticBitTextureCoordinate 

UVs for vertex array.

SemanticBitColor 

Colors for vertex array.

SemanticBitWeight 

Weights for vertex array.

SemanticBitMatrixPalette 

Bone matrices.

Constructor & Destructor Documentation

kanzi::VertexAttribute::VertexAttribute ( )
inlineexplicit
kanzi::VertexAttribute::VertexAttribute ( const string &  name_,
Semantic  semantic_,
GraphicsDataType  dataType_,
unsigned int  dimension_,
unsigned int  offset_ 
)
inlineexplicit

Member Data Documentation

string kanzi::VertexAttribute::name

Name of the attribute.

Not currently used.

Semantic kanzi::VertexAttribute::semantic

Attribute semantic.

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.


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