mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 02:36:54 +02:00
Add little balls to the end of the world coordinate axis markers when shown
This commit is contained in:
parent
834821d005
commit
5ea6a9a696
1 changed files with 17 additions and 0 deletions
|
@ -80,6 +80,23 @@ void render_world_box()
|
||||||
glVertex3f(0,0,0);
|
glVertex3f(0,0,0);
|
||||||
glVertex3f(0, 0, WORLD_SIZE);
|
glVertex3f(0, 0, WORLD_SIZE);
|
||||||
glEnd();
|
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)
|
double diffclock(timeval *clock1,timeval *clock2)
|
||||||
|
|
Loading…
Reference in a new issue