X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=helper.c;h=d7c6291b1ade4f1b6f9d99a0d51d8b1617625fb3;hb=6050088f70bb80701c08dcee9ad786b6c62acf7a;hp=182409a05e2571c55c922ae7fd04b12f7cc4d889;hpb=38db40a2eb9f5c86960c378a839c06fd40dc2544;p=atyndall%2Fcits2231.git diff --git a/helper.c b/helper.c index 182409a..d7c6291 100644 --- a/helper.c +++ b/helper.c @@ -272,20 +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( -lineLength, 0.0, 0.0 ); - glVertex3i( -lineLength - arrowLength, 0.0, -1.0 ); + // z arrowheads + glVertex3i( 0.0, 0.0, lineLength ); + glVertex3i( 1.0, 0.0, lineLength - arrowLength ); - // z arrow - glVertex3i( 0.0, 0.0, lineLength ); - glVertex3i( 0.0, 0.0, -lineLength ); + glVertex3i( 0.0, 0.0, lineLength ); + glVertex3i( -1.0, 0.0, lineLength - arrowLength ); glEnd(); glDisable(GL_BLEND);