How do you implement double buffering into your OpenGL apps? I havn’t seen any tutorials on it yet.
choose a double buffering window instead of a single one when u create it eg for glut use GLUT_DOBLE instead of GLUT_SINGLE
This depends on how you’re using OpenGL. If you’re using GLUT, then it’s pretty simple. When you call glutInitDisplayMode(), make sure that you include GLUT_DOUBLE as one of the parameters:
Then, when you want to draw the screen, call glutSwapBuffers() instead of glFlush().
If you’re using the WinAPI, then it’s a little more challenging. I can’t remember off the top of my head how it’s done, but I’m pretty sure that NeHe’s Tutorial 1 covers it.
[This message has been edited by DLink (edited 02-19-2001).]