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_RaytraceLight Struct Reference

    Stores properties of OpenGL light source. More...

    #include <OpenGl_SceneGeometry.hxx>

    Public Member Functions

     OpenGl_RaytraceLight ()=default
     Creates new light source.
     OpenGl_RaytraceLight (const BVH_Vec4f &theEmission, const BVH_Vec4f &thePosition)
     Creates new light source.
    const float * Packed ()
     Returns packed (serialized) representation of light source.

    Data Fields

    BVH_Vec4f Emission
     Diffuse intensity (in terms of OpenGL).
    BVH_Vec4f Position
     Position of light source (in terms of OpenGL).

    Detailed Description

    Stores properties of OpenGL light source.

    Constructor & Destructor Documentation

    ◆ OpenGl_RaytraceLight() [1/2]

    OpenGl_RaytraceLight::OpenGl_RaytraceLight ( )
    default

    Creates new light source.

    ◆ OpenGl_RaytraceLight() [2/2]

    OpenGl_RaytraceLight::OpenGl_RaytraceLight ( const BVH_Vec4f & theEmission,
    const BVH_Vec4f & thePosition )

    Creates new light source.

    Member Function Documentation

    ◆ Packed()

    const float * OpenGl_RaytraceLight::Packed ( )
    inline

    Returns packed (serialized) representation of light source.

    Field Documentation

    ◆ Emission

    BVH_Vec4f OpenGl_RaytraceLight::Emission

    Diffuse intensity (in terms of OpenGL).

    ◆ Position

    BVH_Vec4f OpenGl_RaytraceLight::Position

    Position of light source (in terms of OpenGL).


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