Open CASCADE Technology 7.8.2.dev
Graphic3d_UniformValue< T > Struct Template Reference

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

#include <Graphic3d_ShaderVariable.hxx>

Inheritance diagram for Graphic3d_UniformValue< T >:

Public Member Functions

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

Data Fields

Value
 Value of custom uniform variable.
 

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: