// Draw square.
// **NOTE: We're drawing large strips, instead of squares, which might cause a lighting problem
glBegin(GL_QUADS);
- glNormal3f(0,1,0);
+ //glNormal3f(0,1,0);
+ glColor3f(1.0, 1.0, 1.0);
glVertex3f(x1, 0.0, z1);
glVertex3f(x1, 0.0, z2);
glVertex3f(x2, 0.0, z2);
glColor3f( 0.0, 0.0, 0.0 );
glBegin(GL_LINES);
+ // x arrow
glVertex3i( lineLength, 0.0, 0.0 );
glVertex3i( -lineLength, 0.0, 0.0 );
- glEnd();
-
- glBegin(GL_LINES);
+
+ // x arrowheads
+ glVertex3i( lineLength - 1, 0.0, 0.0 );
+ glVertex3i( -lineLength - 1, 0.0, 0.0 );
+
+ glVertex3i( lineLength - 1, 0.0, 0.0 );
+ glVertex3i( -lineLength + 1, 0.0, 0.0 );
+
+ // z arrow
glVertex3i( 0.0, 0.0, lineLength );
glVertex3i( 0.0, 0.0, -lineLength );
glEnd();