OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    OpenGl_Material Struct Reference

    OpenGL material definition. More...

    #include <OpenGl_Material.hxx>

    Public Member Functions

    void SetColor (const NCollection_Vec3< float > &theColor)
     Set material color.
    void Init (const OpenGl_Context &theCtx, const Graphic3d_MaterialAspect &theFront, const Quantity_Color &theFrontColor, const Graphic3d_MaterialAspect &theBack, const Quantity_Color &theBackColor)
     Initialize material.
    bool IsEqual (const OpenGl_Material &theOther) const
     Check this material for equality with another material (without tolerance!).
    bool operator== (const OpenGl_Material &theOther)
     Check this material for equality with another material (without tolerance!).
    bool operator== (const OpenGl_Material &theOther) const
    bool operator!= (const OpenGl_Material &theOther)
     Check this material for non-equality with another material (without tolerance!).
    bool operator!= (const OpenGl_Material &theOther) const
    const NCollection_Vec4< float > * PackedCommon () const
     Returns packed (serialized) representation of common material properties.
    const NCollection_Vec4< float > * PackedPbr () const
     Returns packed (serialized) representation of PBR material properties.

    Static Public Member Functions

    static int NbOfVec4Common ()
    static int NbOfVec4Pbr ()

    Data Fields

    OpenGl_MaterialCommon Common [2]
    OpenGl_MaterialPBR Pbr [2]

    Detailed Description

    OpenGL material definition.

    Member Function Documentation

    ◆ Init()

    void OpenGl_Material::Init ( const OpenGl_Context & theCtx,
    const Graphic3d_MaterialAspect & theFront,
    const Quantity_Color & theFrontColor,
    const Graphic3d_MaterialAspect & theBack,
    const Quantity_Color & theBackColor )

    Initialize material.

    ◆ IsEqual()

    bool OpenGl_Material::IsEqual ( const OpenGl_Material & theOther) const
    inline

    Check this material for equality with another material (without tolerance!).

    ◆ NbOfVec4Common()

    int OpenGl_Material::NbOfVec4Common ( )
    inlinestatic

    ◆ NbOfVec4Pbr()

    int OpenGl_Material::NbOfVec4Pbr ( )
    inlinestatic

    ◆ operator!=() [1/2]

    bool OpenGl_Material::operator!= ( const OpenGl_Material & theOther)
    inline

    Check this material for non-equality with another material (without tolerance!).

    ◆ operator!=() [2/2]

    bool OpenGl_Material::operator!= ( const OpenGl_Material & theOther) const
    inline

    ◆ operator==() [1/2]

    bool OpenGl_Material::operator== ( const OpenGl_Material & theOther)
    inline

    Check this material for equality with another material (without tolerance!).

    ◆ operator==() [2/2]

    bool OpenGl_Material::operator== ( const OpenGl_Material & theOther) const
    inline

    ◆ PackedCommon()

    const NCollection_Vec4< float > * OpenGl_Material::PackedCommon ( ) const
    inline

    Returns packed (serialized) representation of common material properties.

    ◆ PackedPbr()

    const NCollection_Vec4< float > * OpenGl_Material::PackedPbr ( ) const
    inline

    Returns packed (serialized) representation of PBR material properties.

    ◆ SetColor()

    void OpenGl_Material::SetColor ( const NCollection_Vec3< float > & theColor)
    inline

    Set material color.

    Field Documentation

    ◆ Common

    OpenGl_MaterialCommon OpenGl_Material::Common[2]

    ◆ Pbr

    OpenGl_MaterialPBR OpenGl_Material::Pbr[2]

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