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();