Advertisement

How to draw converging parallel lines?

Started by August 04, 2005 06:49 PM
1 comment, last by Kincaid 19 years, 1 month ago
Hi All Thanks in advance for your time. I am new to this forum and new to OpenGL programming. I am trying to draw a converging parallel line. Here is the code which writes the lines in windows environment: void drawOutline(void) { glBegin(GL_LINES); glVertex3f(-0.7f, -0.1f,0.9f); glVertex3f(-0.7f, -0.1f,-0.9f); glEnd(); glBegin(GL_LINES); glVertex3f(0.7f, -0.1f,0.9f); glVertex3f(0.7f, -0.1f,-0.9f); glEnd(); } Now as you can see this is a set of parallel lines along Z-axiz. Now how do I render these something like two rail lines (using projection)? Any help is appreciated. george
Cross-post. Pick a single forum and stick to it.

Welcome aboard! [smile]
Advertisement
glMatrixMode(GL_MODELVIEW);

This topic is closed to new replies.

Advertisement