// d3dumddi.h
PFND3DDDI_CREATELIGHT Pfnd3dddiCreatelight;
HRESULT Pfnd3dddiCreatelight(
HANDLE hDevice,
const D3DDDIARG_CREATELIGHT *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The CreateLight function creates a light source.
hDeviceA handle to the display device (graphics context).
unnamedParam2pData [in]
A pointer to a D3DDDIARG_CREATELIGHT structure that contains the index into the light array.
CreateLight should return S_OK or an appropriate error result if it cannot successfully create a light source.
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.