Microsoft DirectX 8.1 (Visual Basic) |
Retrieves the activity status—enabled or disabled—for a set of lighting parameters within a device.
object.GetLightEnable( _ Index As Long) As Long
A variable to fill with the status of the specified lighting parameters. After the call, a nonzero value at this address indicates that the specified lighting parameters are enabled; a value of 0 indicates that they are disabled.
If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
Direct3DDevice8.GetLight, Direct3DDevice8.LightEnable, Direct3DDevice8.SetLight