How to draw converging parallel lines?
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement