How to draw converging parallel lines?

Started by
1 comment, last by Kincaid 18 years, 8 months 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
Advertisement
Cross-post. Pick a single forum and stick to it.

Welcome aboard! [smile]
glMatrixMode(GL_MODELVIEW);

This topic is closed to new replies.

Advertisement