void displayfunc() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); scene.draw(); glutSwapBuffers(); }
void displayfunc() { canvas.clear_color_buffer(); canvas.clear_depth_buffer(); scene.draw(); canvas.swap_buffers(); }