How to clear portion of screen

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.

glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // (or whatever buffer you want to clear)

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.