The OGLLight object represents the OGL light properties of a Light object.
OGLLight objects are read-only.
        using namespace XSI;
        Application app;
        Model root = app.GetActiveSceneRoot();
        Light myLight;
        root.AddLight( L"Spot", false, L"", myLight);
        OGLLight myOGLLight(myLight.GetOGLLight());
        app.LogMessage( L"The light is of type : " + myOGLLight.GetType() );
#include <xsi_ogllight.h>

| Public Member Functions | |
| OGLLight () | |
| ~OGLLight () | |
| OGLLight (const CRef &in_ref) | |
| OGLLight (const OGLLight &in_obj) | |
| bool | IsA (siClassID in_ClassID) const | 
| siClassID | GetClassID () const | 
| OGLLight & | operator= (const OGLLight &in_obj) | 
| OGLLight & | operator= (const CRef &in_ref) | 
| siLightType | GetType () const | 
| CColor | GetColor () const | 
| MATH::CVector3 | GetLightPosition () const | 
| MATH::CVector3 | GetLightInterestPosition () const | 
| double | GetConeAngle () const | 
| OGLLight | ( | ) | 
Default constructor.
| ~OGLLight | ( | ) | 
Default destructor.
| bool IsA | ( | siClassID | in_ClassID | ) | const [virtual] | 
Returns true if a given class type is compatible with this API class.
| in_ClassID | class type. | 
Reimplemented from CBase.
| siClassID GetClassID | ( | ) | const [virtual] | 
Creates an object from another object. The newly created object is set to empty if the input object is not compatible.
| in_obj | constant class object. | 
Creates an object from a reference object. The newly created object is set to empty if the input reference object is not compatible.
| in_ref | constant class object. | 
| siLightType GetType | ( | ) | const | 
Returns the type of light.
| CColor GetColor | ( | ) | const | 
Returns the color for this light.
| MATH::CVector3 GetLightPosition | ( | ) | const | 
Returns the vector position of the light.
| MATH::CVector3 GetLightInterestPosition | ( | ) | const | 
Returns the interest vector position of the light.
| double GetConeAngle | ( | ) | const | 
Returns the cone angle for a spot light.