glColor4ub( 0.0, 0.0, 0.0, 0.5 );
glBegin(GL_LINES);
- glVertex3i( 10.0, 0.1, 10.0);
- glVertex3i( -10.0, 0.1, -10.0);
+ glVertex3i( lineLength, 1.0, 0.0 );
+ glVertex3i( -lineLength, 1.0, 0.0 );
+ glEnd();
+
+ glBegin(GL_LINES);
+ glVertex3i( 0.0, 1.0, lineLength );
+ glVertex3i( 0.0, 1.0, -lineLength );
glEnd();
glDisable(GL_BLEND);