D3DPICKRECORD

The D3DPICKRECORD structure returns information about picked primitives in an execute buffer for the IDirect3DDevice::GetPickRecords method.

typedef struct _D3DPICKRECORD {

BYTE bOpcode;

BYTE bPad;

DWORD dwOffset;

D3DVALUE dvZ;

} D3DPICKRECORD, *LPD3DPICKRECORD;

Members

bOpcode

Opcode of the picked primitive.

bPad

Pad byte.

dwOffset

Offset from the start of the instruction segment portion of the execute buffer in which the picked primitive was found. (The instruction segment portion of the execute buffer is the part of the execute buffer that follows the vertex list.)

dvZ

Depth of the picked primitive.

Remarks

The x- and y-coordinates of the picked primitive are specified in the call to the IDirect3DDevice::Pick method that created the pick records.

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.

See Also

IDirect3DDevice::GetPickRecords, IDirect3DDevice::Pick