Flickering on double buffer
I am learning OpenGL at the moment. I tried to create a sphere circling on an orbit. I develop the program in Visual C++ environment. I created the window not through Win32 API, but using OpenGL command : glutCreateWindow(...)
I have enabled the double buffer as follow:
glutInitDisplayMode(GLUT_RGB|GLUT_DOUBLE|GLUT_DEPTH);
glClearColor(0.0,0.0,0.0,1.0);
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
And on display callback I have used :
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
MyDrawBall();
MyUpdateBall();
glutSwapBuffers();
Many thx in advanced
[edited by - Meesa on January 25, 2004 5:32:26 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement