So I am writing an application that needs to be able to draw spheres and lines. I have written the UI using GLUT and GLUI. So what I need the program to be able to do is allow the user to be able to click on a sphere in the graphics window, click somewhere else on the graphics window and have it draw another sphere at the position of the second click and then draw a line (or small cylinder) connecting the two spheres. My question is, how do I draw a sphere at a certain position on the window? I know about glutWireSphere() and glutSolidSphere(), but I cant find a way to change to position of where the sphere is displayed (as the default is at the origin). Can somebody help me with this? Thanks