|
There must be, there is no graphics library, and the function is more powerful, more convenient and more efficient to use
The following is a function that connects two points (x1, y1, z1) (x2, y2, z2)
When connecting multiple lines, just insert glVertex3d (x, y, z) in glBegin (GL_LINES); glEnd ();
void Line (double x1, double y1, double z1, double x2, double y2, double z2)
{
glBegin (GL_LINES);
glVertex3d (x1, y1, z1);
glVertex3d (x2, y2, z2);
glEnd ();
} |
|