Function line3d
#include <macaw3d.h>void line3d(
double x0,
double y0,
double z0,
double x1,
double y1,
double z1,
int colour,
int thick
);
Draws a line between two places in the world, seen through camera3d's camera, over the picture. It isn't hidden behind things, and the part behind the camera is cut off. Use it for outlines and markers.
Parameters
x0double- Where the line starts across, in world units.
y0double- The height the line starts at.
z0double- Where the line starts along z.
x1double- Where the line ends across.
y1double- The height the line ends at.
z1double- Where the line ends along z.
colourint- The line's colour number.
thickint- 1 for a line two pixels wide, 0 for one pixel.
In Lamps, fog and lines, with pointlight3d, fog3d, nofog3d, project3d, stats3d.