Function campick3d
#include <macaw3d.h>int campick3d(int camera, double x, double y, double max, hit3d *hit);
Finds the pickable thing under a point in a camera's picture, such as the mouse pointer: the thing drawn in the pixel the point is in.
Parameters
cameraint- The camera's number.
xdouble- The point's distance from the picture's left edge, in pixels.
ydouble- The point's distance from the picture's top edge, in pixels.
maxdouble- How far away to look, in world units. 0 or less: no limit.
hithit3d *- Where to put what was hit: pass the address of a
hit3d, like&hit(orNULL).
Returns int
The number of the thing under the point, or 0 if there's nothing there.
In Cameras, with fov3d, clscolor3d, camfog3d, camproject3d.