示例#1
0
void displayfunc()
{
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

	scene.draw();

	glutSwapBuffers();
}
示例#2
0
void displayfunc()
{
    canvas.clear_color_buffer();
    canvas.clear_depth_buffer();

    scene.draw();

    canvas.swap_buffers();
}