From 5ea6a9a69680b34fe636e41113c4e031b40d4252 Mon Sep 17 00:00:00 2001 From: Philip Rosedale Date: Wed, 10 Apr 2013 18:57:09 -0700 Subject: [PATCH] Add little balls to the end of the world coordinate axis markers when shown --- interface/src/Util.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/interface/src/Util.cpp b/interface/src/Util.cpp index fdd207ce48..3d58c6faa5 100644 --- a/interface/src/Util.cpp +++ b/interface/src/Util.cpp @@ -80,6 +80,23 @@ void render_world_box() glVertex3f(0,0,0); glVertex3f(0, 0, WORLD_SIZE); glEnd(); + // Draw little marker dots along the axis + glEnable(GL_LIGHTING); + glPushMatrix(); + glTranslatef(WORLD_SIZE,0,0); + glColor3f(1,0,0); + glutSolidSphere(0.125,10,10); + glPopMatrix(); + glPushMatrix(); + glTranslatef(0,WORLD_SIZE,0); + glColor3f(0,1,0); + glutSolidSphere(0.125,10,10); + glPopMatrix(); + glPushMatrix(); + glTranslatef(0,0,WORLD_SIZE); + glColor3f(0,0,1); + glutSolidSphere(0.125,10,10); + glPopMatrix(); } double diffclock(timeval *clock1,timeval *clock2)