Open CASCADE Technology  7.7.0
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

◆ Stride() [1/2]

Standard_Integer Graphic3d_Attribute::Stride ( ) const
inline

◆ Stride() [2/2]

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

Field Documentation

◆ DataType

Graphic3d_TypeOfData Graphic3d_Attribute::DataType

vec2,vec3,vec4,vec4ub

◆ Id

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: