I am trying to program this stimulus for my experiment using glut, in which a complicated background and a superimposed simple patch will be presented. The luminance of the patch but not the background will udergo oscillation over time. The problem that I have now is to update the scene, after calling glutPostRedisplay, everything in the previous scene is cleared. And the time spent to draw the background (not the patch!!) is too long, of course partly also due to the relatively low performance of the machine . My question is how to, if I can, redraw only the patch part every time I update the scene?
Your help will be greatly appreciated!!