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 IDirect3D3::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:

IUnknown AddRef
  QueryInterface
Release

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

typedef struct IDirect3DLight    *LPDIRECT3DLIGHT;
 

QuickInfo

  Windows NT/2000: Requires Windows NT 4.0 SP3 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in ddraw.h.
  Import Library: Use ddraw.lib.