| Microsoft DirectX 8.1 (Visual Basic) |
Assigns a set of lighting properties for this device.
object.SetLight( _
Index As Long, _
Light As D3DLIGHT8)
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.GetLightEnable, Direct3DDevice8.LightEnable