C

Attribute Class

(Q3DSGeometry::Attribute)

Public Types

enum ComponentType { DefaultType, U8Type, I8Type, U16Type, ..., F64Type }
enum Semantic { UnknownSemantic, IndexSemantic, PositionSemantic, NormalSemantic, ..., BinormalSemantic }

Member Type Documentation

enum Attribute::ComponentType

This enumeration specifies the possible attribute component types for the geometry. The attribute component type indicates how the attribute component data should be interpreted.

ConstantValueDescription
Q3DSGeometry::Attribute::DefaultType0Use the default type for the attribute.
Q3DSGeometry::Attribute::U8Type1Component data is unsigned 8 bit integer.
Q3DSGeometry::Attribute::I8Type2Component data is signed 8 bit integer.
Q3DSGeometry::Attribute::U16Type3Component data is unsigned 16 bit integer.
Q3DSGeometry::Attribute::I16Type4Component data is signed 16 bit integer.
Q3DSGeometry::Attribute::U32Type5Component data is unsigned 32 bit integer. Default component type for attributes with IndexSemantic.
Q3DSGeometry::Attribute::I32Type6Component data is signed 32 bit integer.
Q3DSGeometry::Attribute::U64Type7Component data is unsigned 64 bit integer.
Q3DSGeometry::Attribute::I64Type8Component data is signed 64 bit integer.
Q3DSGeometry::Attribute::F16Type9Component data is 16 bit float.
Q3DSGeometry::Attribute::F32Type10Component data is 32 bit float. Default component type for attributes with a semantic other than IndexSemantic.
Q3DSGeometry::Attribute::F64Type11Component data is 64 bit float.

enum Attribute::Semantic

This enumeration specifies the possible attribute semantics for the geometry. The attribute semantic indicates the purpose of the attribute.

ConstantValueDescription
Q3DSGeometry::Attribute::UnknownSemantic0Attribute semantic is unknown.
Q3DSGeometry::Attribute::IndexSemantic1Attribute specifies index buffer data type.
Q3DSGeometry::Attribute::PositionSemantic2Attribute specifies vertex position attribute (attr_pos in shaders). Attribute has three components.
Q3DSGeometry::Attribute::NormalSemantic3Attribute specifies vertex normal attribute (attr_norm in shaders). Attribute has three components.
Q3DSGeometry::Attribute::TexCoordSemantic4Attribute specifies vertex texture coordinate attribute (attr_uv0 in shaders). Attribute has two components.
Q3DSGeometry::Attribute::TangentSemantic5Attribute specifies vertex tangent attribute (attr_textan in shaders). Attribute has three components.
Q3DSGeometry::Attribute::BinormalSemantic6Attribute specifies vertex binormal attribute (attr_binormal in shaders). Attribute has three components.

Available under certain Qt licenses.
Find out more.