D3DLIGHTDATA

The D3DLIGHTDATA structure describes the points to be lit and resulting colors in calls to the IDirect3DViewport2::LightElements method.

typedef struct _D3DLIGHTDATA {

DWORD dwSize;

LPD3DLIGHTINGELEMENT lpIn;

DWORD dwInSize;

LPD3DTLVERTEX lpOut;

DWORD dwOutSize;

} D3DLIGHTDATA, *LPD3DLIGHTDATA;

Members

dwSize

Size, in bytes, of this structure. This member must be initialized before the structure is used.

lpIn

Address of a D3DLIGHTINGELEMENT structure specifying the input positions and normal vectors.

dwInSize

Amount to skip from one input element to the next. This allows the application to store extra data inline with the element.

lpOut

Address of a D3DTLVERTEX structure specifying the output colors.

dwOutSize

Amount to skip from one output color to the next. This allows the application to store extra data inline with the color.

QuickInfo

  Windows NT: Use version 4.0 or later.
  Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in d3dtypes.h.