depth buffer vs double buffer
I read the Jitter tutorial, but did not quite understand the concept of depth buffer. I would like to know When I need to create depth buffer and when not for jit.pwindow or jit.window. How is the "depth buffer" different from "double buffer" ?
Thank you so much.
Hello Cheng:
a depthbuffer is used to store the depth of each pixel so you don't overwrite the closer object. It is used to give perspective to your scene:
http://jerome.jouvie.free.fr/OpenGl/Lessons/Lesson3.php
http://www.zeuscmd.com/tutorials/opengl/11-Depth.php
the double buffer refers to the usage of two color buffers for drawing so allows a smooth animation:
http://www.cs.arizona.edu/classes/cs433/spring02/opengl/dblbuffer.html
http://www.lighthouse3d.com/opengl/glut/index.php?4