PDA

View Full Version : problem about mouse move



haitian
09-15-2005, 11:47 PM
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!

dorbie
09-16-2005, 09: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.