Blt
Expand Minimize

CreateLight routine

The CreateLight function creates a light source.

Syntax


PFND3DDDI_CREATELIGHT CreateLight;

__checkReturn HRESULT APIENTRY CreateLight(
  _In_  HANDLE hDevice,
  _In_  const D3DDDIARG_CREATELIGHT *pData
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

pData [in]

A pointer to a D3DDDIARG_CREATELIGHT structure that contains the index into the light array.

Return value

CreateLight should return S_OK or an appropriate error result if it cannot successfully create a light source.

Remarks

The user-mode display driver should enlarge its light array as necessary to accommodate at least as many light sources as specified by the Index member in D3DDDIARG_CREATELIGHT.

Requirements

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_CREATELIGHT
D3DDDI_DEVICEFUNCS

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft