View Full Version : what command to clear what I have drawn?
06-09-2004, 04:06 PM
I have a problem,because I want to rotate a object by redrawing the object,but I don't know how to clear the previous object,please tell me,thanks in advance!
06-09-2004, 04:50 PM
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BIT | GL_STENCIL_BUFFER_BIT | ...);
Leave out what you don't need.
You can set the values to which the framebuffer needs to be cleared with the commands
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.