Microsoft SDK for Java

pick

This method of the Direct3dDevice Class executes a buffer without performing any rendering, but returns a z-ordered list of offsets to the primitives that cover the rectangle specified by Rect.

This call fails if the Direct3dExecuteBuffer object is locked.

Syntax

public void pick(Direct3dExecuteBuffer eb, Direct3dViewport vport, int flags, D3dRect rectangle);

Parameters

eb An execute buffer from which the z-ordered list is retrieved.
vport A viewport in the list of viewports associated with this Direct3dDevice object.
flags No flags are currently defined for this method.
Rect The D3dRect object specifying the range of device coordinates to be picked.

Remarks

If the x1 and x2 fields of the object specified in the Rect parameter are equal, and the y1 and y2 members are equal, a single pixel is used for picking. The coordinates are specified in device-pixel space.

All Direct3dExecuteBuffer objects must be attached to a Direct3dDevice object for this method to succeed.

See Also

getPickRecords

© 1999 Microsoft Corporation. All rights reserved. Terms of use.