Hi ,
I want to clear some specified portion of the screen without affecting rest of the objects on the screen.
Thanks in advance
Hi ,
I want to clear some specified portion of the screen without affecting rest of the objects on the screen.
Thanks in advance
By screen I assume you mean the GL drawing surface.
glScissor(x,y,width,height);
glEnable(GL_SCISSOR_TEST);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // (or whatever buffer you want to clear)
glDisable(GL_SCISSOR_TEST);
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.