IDirect3DLight::SetLight

HRESULT SetLight(LPD3DLIGHT lpLight);

Sets the light information for the Direct3DLight object.

·Returns D3D_OK if successful, or an error otherwise, which may be one of the following values:

DDERR_INVALIDOBJECT

DDERR_INVALIDPARAMS

lpLight

Address of a D3DLIGHT structure that will be used to set the current light data.