X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=helper.c;h=b1b0d967141ad6d5b08f5d8227fc924fcec4da3b;hp=ceb7c1529c59ca2aa26d038b60102887e7a5a0c2;hb=b32b74865d4cc2913383e3a38c629eb2d4d983f6;hpb=42f7093208bb77a0973435339f4e4361f402eb13 diff --git a/helper.c b/helper.c index ceb7c15..b1b0d96 100644 --- a/helper.c +++ b/helper.c @@ -264,11 +264,18 @@ void drawLine() { 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();