![]() |
Open CASCADE Technology Reference Manual 8.0.1
|
Interface for generic variable value. More...
#include <Graphic3d_ShaderVariable.hxx>

Public Member Functions | |
| virtual | ~Graphic3d_ValueInterface () |
| Releases memory resources of variable value. | |
| virtual size_t | TypeID () const =0 |
| Returns unique identifier of value type. | |
| 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. | |
Interface for generic variable value.
|
virtual |
Releases memory resources of variable value.
| T & Graphic3d_ValueInterface::As | ( | ) |
Returns variable value casted to specified type.
| const T & Graphic3d_ValueInterface::As | ( | ) | const |
Returns variable value casted to specified type.
|
pure virtual |
Returns unique identifier of value type.
Implemented in Graphic3d_UniformValue< T >, Graphic3d_UniformValue< float >, Graphic3d_UniformValue< int >, Graphic3d_UniformValue< NCollection_Mat3< float > >, Graphic3d_UniformValue< NCollection_Mat4< float > >, Graphic3d_UniformValue< NCollection_Vec2< float > >, Graphic3d_UniformValue< NCollection_Vec2< int > >, Graphic3d_UniformValue< NCollection_Vec3< float > >, Graphic3d_UniformValue< NCollection_Vec3< int > >, Graphic3d_UniformValue< NCollection_Vec4< float > >, and Graphic3d_UniformValue< NCollection_Vec4< int > >.