Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.GetLightEnable

Retrieves the activity status—enabled or disabled—for a set of lighting parameters within a device.

object.GetLightEnable( _ 
    Index As Long) As Long

Parts

object
Object expression that resolves to a Direct3DDevice8 object.
Index
Zero-based index of the set of lighting parameters that are the target of this method.

Return Values

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.

Error Codes

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.

See Also

Direct3DDevice8.GetLight, Direct3DDevice8.LightEnable, Direct3DDevice8.SetLight