/* Current camera x, y, z coords */
GLfloat camx = 0.0, camy = 0.0, camz = 0.0, rot = 0.0;
+/* Length of axis lines */
+GLfloat lineLength = 100;
+
/* Light 0 parameters */
GLfloat diffuse0[] = {1.0, 1.0, 1.0, 1.0};
GLfloat ambient0[] = {0.0, 0.0, 0.0, 1.0};
/* Current camera position */
extern GLfloat camx, camy, camz, rot;
+/* Length of axis lines */
+extern GLfloat lineLength;
+
/* Light 0 parameters */
extern GLfloat diffuse0[];
extern GLfloat ambient0[];
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);