IDirect3DLight

Applications use the methods of the IDirect3DLight interface to retrieve and set the capabilities of lights. This section is a reference to the methods of this interface. For a conceptual overview, see Lights.

The IDirect3DLight interface is obtained by calling the IDirect3D2::CreateLight method.

The methods of the IDirect3DLight interface can be organized into the following groups:

Get and set GetLight
SetLight
Initialization Initialize

The IDirect3DLight interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods:

AddRef
QueryInterface
Release

The LPDIRECT3DLIGHT type is defined as a pointer to the IDirect3DLight interface:

typedef struct IDirect3DLight    *LPDIRECT3DLIGHT;