// d3dumddi.h
PFND3DDDI_SETLIGHT Pfnd3dddiSetlight;
HRESULT Pfnd3dddiSetlight(
[in] HANDLE hDevice,
const D3DDDIARG_SETLIGHT *unnamedParam2,
const D3DDDI_LIGHT *unnamedParam3
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The SetLight function sets properties for a light source.
hDevice [in]A handle to the display device (graphics context).
unnamedParam2pData [in]
A pointer to a D3DDDIARG_SETLIGHT structure that describes how to set the light source.
unnamedParam3pLightProperties [in]
A pointer to a D3DDDI_LIGHT structure that describes the light properties to set.
SetLight returns S_OK or an appropriate error result if the light properties are not successfully set.
Light properties describe the type and color of a light source. Depending on the type of light that is being used, a light can have properties for attenuation and range or for spotlight effects. However, not all types of lights will use all of the properties. For more information about light properties, see the Microsoft Windows SDK documentation.