please help

hi, i just started studying 3D graphics using OpenGL. I have this task to enable a user to move a sphere around and detect when the sphere gets completely inside a cube and then my very little programme should close.
could anyone help me to do it or point me in the correct direction.

Thankful beforehand.

Try this:

http://nehe.gamedev.net/

its all about tutorials man. I would recommend the NeHe tutorials, as would everyone else here. http://nehe.gamedev.net/

EDIT: see, told ya! (I had the reply window open for 20 min, so I didnt see the other post.)

[This message has been edited by KenR7A (edited 12-01-2002).]

[This message has been edited by KenR7A (edited 12-01-2002).]