Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.GetLight

Retrieves a set of lighting properties that this device uses.

object.GetLight( _ 
    Index As Long, _ 
    Light As D3DLIGHT8)

Parts

object
Object expression that resolves to a Direct3DDevice8 object.
Index
Zero-based index of the lighting property set to retrieve. This method will fail if a lighting property has not been set for this index by calling the Direct3DDevice8.SetLight method.
Light
A D3DLIGHT8 type that is filled with the retrieved lighting-parameter set.

Error Codes

If the method fails, an error is raised and Err.Number may be set to D3DERR_INVALIDCALL if one of the parameters is invalid.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

See Also

Direct3DDevice8.SetLight, Direct3DDevice8.GetLightEnable, Direct3DDevice8.LightEnable