Bewerken

Delen via


D3DHAL_DP2SETLIGHT structure (d3dhal.h)

The D3DHAL_DP2SETLIGHT structure allows lights to be set for D3dDrawPrimitives2.

Syntax

typedef struct _D3DHAL_DP2SETLIGHT {
  DWORD dwIndex;
  DWORD dwDataType;
} D3DHAL_DP2SETLIGHT;

Members

dwIndex

Specifies an index into an array of lights.

dwDataType

Specifies 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.

Requirements

Requirement Value
Header d3dhal.h (include D3dhal.h)

See also

D3dDrawPrimitives2