0
OPENGL
Help me out sil vous plait 🙏 how do you draw a line using gl line, gl line strip & gl line loop?
1 Respuesta
+ 1
After you set up your basic window etc. use this to draw the actual line:
glLineWidth(2.5);
glColor3f(1.0, 0.0, 0.0);
glBegin(GL_LINES);
glVertex3f(0.0, 0.0, 0.0);
glVertex3f(15, 0, 0);
glEnd();