Hi,
I used right mouse click and move to draw a rectangle dynamically, and left mouse click and move to rotate the 3D graphics. If I have drawn a 3D graphics , then right mouse click and move to draw a rectangle, then rotate the 3D graphics, that rectangle would disappear because I use glClear() to clear the whole screen before I redraw the 3D graphics. What should I do if I want to keep the rectangle?
The blue is a cylinder drawn by right mouse click and move. If I rotate the 3D graphics using left mouse click and move, the blue cylinder will disappear.