SoGLLightIdElement Class |
Note: This API is now obsolete.
Stores the id of the current light.
Namespace: OIV.Inventor.Elements
The SoGLLightIdElement type exposes the following members.
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() ![]() | Get | Returns current light id from the state. |
![]() ![]() | GetClassStackIndex | Obsolete. Returns the stack id for this element. |
![]() ![]() | GetDefault | Returns the default light id. |
![]() | GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) |
![]() ![]() | GetMaxGLSources | Returns the maximum number of concurrent light sources supported by GL implementation. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | Increment | Increments the current light id. |
![]() | Pop | Overrides pop() method so side effects can occur in GL. |
![]() | Push | Overrides push() method to copy values from next instance in the stack. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
This element stores the id of the current light. The first light active in a scene has id 0, the next has 1, and so on. This element can be used to determine how many lights are currently active. The initial value of this element is -1 to indicate that there are no lights active.
<font color="#0000FF">NOTE:</font> This class does not exist in Open Inventor 10.0 and later.
Note that even though the effects of this element accumulate (each light source increments the id), it is derived from SoInt32Element. This is because each call to increment() effectively does a "get" of the current top instance, so caching knows about the dependency of each instance on the previous one.