DirectX SDK

Direct3DDevice7.GetLight

The Direct3DDevice7.GetLight method retrieves a set of lighting properties used by this device.

object.GetLight( _ 
    LightIndex As Long, _ 
    Light As D3DLIGHT7)

Parameters

object
Object expression that resolves to a Direct3DDevice7 object.
LightIndex
Zero-based index of the lighting property set to be retrieved.
Light
A D3DLIGHT7 type that will be filled with the retrieved lighting-parameter set.

Error Codes

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

See Also

Direct3DDevice7.SetLight, Direct3DDevice7.GetLightEnable, Direct3DDevice7.LightEnable, Lighting and Materials