View Full Version : problem about mouse move

09-16-2005, 12:47 AM
hello,I would like to draw a plane ,a line after
it and a sphere before it.And I can use
the mouse to make the sphere rotate.
But when I tryed it , the line and the plane which are after it disappered.what is the problem ?Can anyone help me ?thank you very much!

09-16-2005, 10:20 PM
Make sure you use pushmatrix and popmatrix to isolate your chosen transformatiosn to the objects you want to transform.

Also begin each frame with a glLoadIdentity to make sure you begin with a clean slate and make sure you ballance your pushes and pops.