Tell me about Depth in OpenGL?

or how far is a vertex from the camera.


// Enable depth test
glEnable(GL_DEPTH_TEST);

// Accept fragment Or Draw a pixel
// if it closer to the camera than the former one
glDepthFunc(GL_LESS);

How to hide hidden surfaces in OpenGL?

Search for: How to hide hidden surfaces in OpenGL?

glDepthFunc

Search for: glDepthFunc

Some information on depth from opengl programming guide

Read about winding and how winding defines front/back surfaces