// d3dhal.h
typedef struct _D3DHAL_DP2SETLIGHT {
DWORD dwIndex;
DWORD dwDataType;
} D3DHAL_DP2SETLIGHT;
View the official Windows Driver Kit DDI referenceNo description available.
The D3DHAL_DP2SETLIGHT structure allows lights to be set for D3dDrawPrimitives2.
dwIndexSpecifies an index into an array of lights.
dwDataTypeSpecifies the type of data being passed.
| Value | Meaning |
|---|---|
| D3DHAL_SETLIGHT_DATA | Specifies that a D3DLIGHT7 (described in the Microsoft Windows SDK documentation) structure defining the light follows immediately in the command stream. |
| D3DHAL_SETLIGHT_ENABLE | Enables the light whose index is specified in dwIndex. |
| D3DHAL_SETLIGHT_DISABLE | Disables the light whose index is specified in dwIndex. |