PFND3DDDI_DESTROYLIGHT callback function

The DestroyLight function deactivates a light source.

Syntax


PFND3DDDI_DESTROYLIGHT DestroyLight;

__checkReturn HRESULT APIENTRY DestroyLight(
  _In_       HANDLE                 hDevice,
  _In_ const D3DDDIARG_DESTROYLIGHT *pData
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

pData [in]

A pointer to a D3DDDIARG_DESTROYLIGHT structure that describes how to set the light source.

Return value

DestroyLight returns S_OK or an appropriate error result if the light source is not successfully deactivated.

Requirements

Target platform

Desktop

Version

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

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_DESTROYLIGHT
D3DDDI_DEVICEFUNCS

 

 

Send comments about this topic to Microsoft

Show: