Open CASCADE Technology  7.1.0.beta
Public Member Functions | Static Public Member Functions | Data Fields

Graphic3d_Attribute Struct Reference

Vertex attribute definition. More...

#include <Graphic3d_Buffer.hxx>

Public Member Functions

Standard_Integer Stride () const
 

Static Public Member Functions

static Standard_Integer Stride (const Graphic3d_TypeOfData theType)
 

Data Fields

Graphic3d_TypeOfAttribute Id
 attribute identifier in vertex shader, 0 is reserved for vertex position More...
 
Graphic3d_TypeOfData DataType
 vec2,vec3,vec4,vec4ub More...
 

Detailed Description

Vertex attribute definition.

Member Function Documentation

Standard_Integer Graphic3d_Attribute::Stride ( ) const
inline
static Standard_Integer Graphic3d_Attribute::Stride ( const Graphic3d_TypeOfData  theType)
inlinestatic
Returns
size of attribute of specified data type

Field Documentation

Graphic3d_TypeOfData Graphic3d_Attribute::DataType

vec2,vec3,vec4,vec4ub

Graphic3d_TypeOfAttribute Graphic3d_Attribute::Id

attribute identifier in vertex shader, 0 is reserved for vertex position


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