new to opengl and want to learn some basic things first.
i know how to draw dots, but how do i draw lines from one point to another?
that is very very simple. Instead of:
glBegin( GL_POINTS);
glVertex(…);//dot 1
glVertex(…);//dot 2
glEnd();
type:
glBegin( GL_LINES);
glVertex(…);//dot 1
glVertex(…);//dot 2
glEnd();
go to Nehe!