OpenGL: How to clear only a part of the screen?

Posted by Newbie on Stack Overflow See other posts from Stack Overflow or by Newbie
Published on 2010-06-11T21:14:20Z Indexed on 2010/06/11 21:22 UTC
Read the original article Hit count: 183

Filed under:
|

Is it possible to not clear entire screen when using glClear() function? I need to clear only a part of the screen to save some rendering time, otherwise i would have to redraw half of the screen every frame, even if nothing is happening on the other half.

Of course this should be done as quickly (or quickier) as the glClear() is now.

© Stack Overflow or respective owner

Related posts about c++

Related posts about opengl