Open CASCADE Technology  7.7.0
Public Member Functions | Data Fields

Graphic3d_UniformValue< T > Struct Template Reference

Describes specific value of custom uniform variable. More...

#include <Graphic3d_ShaderVariable.hxx>

Inheritance diagram for Graphic3d_UniformValue< T >:
Inheritance graph
[legend]

Public Member Functions

 Graphic3d_UniformValue (const T &theValue)
 Creates new variable value. More...
 
virtual Standard_Size TypeID () const
 Returns unique identifier of value type. More...
 
- Public Member Functions inherited from Graphic3d_ValueInterface
virtual ~Graphic3d_ValueInterface ()
 Releases memory resources of variable value. More...
 
template<class T >
T & As ()
 Returns variable value casted to specified type. More...
 
template<class T >
const T & As () const
 Returns variable value casted to specified type. More...
 

Data Fields

Value
 Value of custom uniform variable. More...
 

Detailed Description

template<class T>
struct Graphic3d_UniformValue< T >

Describes specific value of custom uniform variable.

Constructor & Destructor Documentation

◆ Graphic3d_UniformValue()

template<class T >
Graphic3d_UniformValue< T >::Graphic3d_UniformValue ( const T &  theValue)
inline

Creates new variable value.

Member Function Documentation

◆ TypeID()

template<class T >
virtual Standard_Size Graphic3d_UniformValue< T >::TypeID ( ) const
virtual

Returns unique identifier of value type.

Implements Graphic3d_ValueInterface.

Field Documentation

◆ Value

template<class T >
T Graphic3d_UniformValue< T >::Value

Value of custom uniform variable.


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