OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    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.
    size_t TypeID () const override
     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>
    size_t Graphic3d_UniformValue< T >::TypeID ( ) const
    overridevirtual

    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: