DirectX SDK |
The Direct3DDevice7.GetLightEnable method retrieves the activity status—enabled or disabled—for a light.
object.GetLightEnable( _ LightIndex As Long) As Boolean
If the method succeeds, the return value indicates the activity status of the light. The method returns True to indicate that the specified light is enabled, and False to indicate that it is disabled.
If the method fails, it sets Err.Number to an error code and raises an error. For a list of possible error codes, see Direct3D Immediate Mode Error Codes.
Direct3DDevice7.GetLight, Direct3DDevice7.LightEnable, Direct3DDevice7.SetLight, Lighting and Materials