Advertisement

How can i draw a simple 3D Line?

Started by June 08, 2003 01:58 PM
1 comment, last by HagerHarald 21 years, 8 months ago
Hi! I''d like to draw a simple 3D Line in a 3D World, but i don''t know how. Can anyone tell me the command? Thanks
Harry
glBegin(GL_LINES);
glVertex3f(pointx,pointy,pointz);
glVertex3f(pointx2,pointy2,pointz2);
glEnd();
Advertisement
Yep, that was it. Tanks!
Harry

This topic is closed to new replies.

Advertisement