How to clear part of screen
Posted by Irene Tang on Mar 04, 2016; 9:11am
URL: https://forum.jogamp.org/How-to-clear-part-of-screen-tp4036424.html
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?