[osg-users] Avoid cleaning drawing buffer
Şan Güneş
sgunes at 350.su
Fri May 8 00:11:02 PDT 2015
Hello,
On Fri May 8 07:49:38 2015 Leandro Linardos <leandro.linardos at gmail.com> wrote:
> Is there any way to avoid cleaning the drawing buffer?
You can use the setClearMask() function of the camera class. Normally you would provide the buffers which you want to be cleared. In your case you can just pass it a null or only clear the depth buffer. For example:
viewer.getCamera()->setClearMask(GL_DEPTH_BUFFER_BIT);
More information about the osg-users
mailing list