X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=helper.c;h=d7c6291b1ade4f1b6f9d99a0d51d8b1617625fb3;hb=6050088f70bb80701c08dcee9ad786b6c62acf7a;hp=a76999442d9d8fa86ff1c74c6c62b9a9d1372da2;hpb=9511d7cf7306574d6521a99537c420c720a8000d;p=atyndall%2Fcits2231.git diff --git a/helper.c b/helper.c index a769994..d7c6291 100644 --- a/helper.c +++ b/helper.c @@ -272,17 +272,21 @@ void drawLine() { // x arrowheads glVertex3i( lineLength, 0.0, 0.0 ); - glVertex3i( lineLength - arrowLength, 0.0, 1.0 ); + glVertex3i( lineLength - arrowLength, 0.0, 0.9 ); glVertex3i( lineLength, 0.0, 0.0 ); glVertex3i( lineLength - arrowLength, 0.0, -1.0 ); - glVertex3i( -lineLength, 0.0, 0.0 ); - glVertex3i( -lineLength - arrowLength, 0.0, 1.0 ); - // z arrow - glVertex3i( 0.0, 0.0, lineLength ); - glVertex3i( 0.0, 0.0, -lineLength ); + glVertex3i( 0.0, 0.0, lineLength ); + glVertex3i( 0.0, 0.0, -lineLength ); + + // z arrowheads + glVertex3i( 0.0, 0.0, lineLength ); + glVertex3i( 1.0, 0.0, lineLength - arrowLength ); + + glVertex3i( 0.0, 0.0, lineLength ); + glVertex3i( -1.0, 0.0, lineLength - arrowLength ); glEnd(); glDisable(GL_BLEND);