PFND3DDDI_DESTROYLIGHT callback function

The DestroyLight function deactivates a light source.

Syntax

PFND3DDDI_DESTROYLIGHT Pfnd3dddiDestroylight;

HRESULT Pfnd3dddiDestroylight(
  HANDLE hDevice,
  const D3DDDIARG_DESTROYLIGHT *Arg2
)
{...}

Parameters

hDevice

A handle to the display device (graphics context).

Arg2

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

   
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dumddi.h (include D3dumddi.h)

See Also

D3DDDIARG_DESTROYLIGHT

D3DDDI_DEVICEFUNCS