glDepthFunc

specify the value used for depth buffer comparisons

Signature

glDepthFunc( GLenum ( func ) )-> void
glDepthFunc( func )

Parameters

VariablesDescription
func
Specifies the depth comparison function. Symbolic constants GL_NEVER , GL_LESS , GL_EQUAL , GL_LEQUAL , GL_GREATER , GL_NOTEQUAL , GL_GEQUAL , and GL_ALWAYS are accepted. The initial value is GL_LESS .

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glDepthFunc
OpenGLContext tests/shadow_1.py Lines: 312
OpenGLContext OpenGLContext/passes/flatcore.py Lines: 78, 79, 165, 185
OpenGLContext OpenGLContext/passes/rendervisitor.py Lines: 341
OpenGLContext OpenGLContext/passes/_flat.py Lines: 343, 344, 441, 461
OpenGLContext OpenGLContext/passes/flatcompat.py Lines: 88, 90, 179, 199
OpenGLContext OpenGLContext/shadow/passes.py Lines: 129, 232, 317, 353
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 27
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/cone.py Lines: 48
OpenGL-Demo PyOpenGL-Demo/tom/conechecker.py Lines: 45
OpenGL-Demo PyOpenGL-Demo/tom/fog.py Lines: 43
OpenGL-Demo PyOpenGL-Demo/tom/cone.py Lines: 24
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 173
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson4.py Lines: 61
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson41.py Lines: 182
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson2.py Lines: 51
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6.py Lines: 86
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson19.py Lines: 89
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson5.py Lines: 64
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson3.py Lines: 51
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson1.py Lines: 51
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson13.py Lines: 119
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 110
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson45.py Lines: 359
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 121
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 60
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson11.py Lines: 33
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson12.py Lines: 36
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson16.py Lines: 51
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 56
OpenGL-Demo py2exe-example/shader_test.py Lines: 28
{Artistic License} PymmLib applications/glutviewer.py Lines: 184
{Artistic License} PymmLib mmLib/OpenGLDriver.py Lines: 158
pyBzEdit pyBzEdit.py Lines: 405
{LGPL} Pyggel pyggel/view.py Lines: 166
{LGPL} pygl2d pygl2d/window.py Lines: 64
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Experiments/Spheres.py Lines: 42
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Experiments/Cubes.py Lines: 65
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/Display3D.py Lines: 137
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/playground/Display3D.py Lines: 146
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/OpenGLDisplay.py Lines: 461
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/Display3D.py Lines: 137
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/playground/Display3D.py Lines: 146
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/OpenGLDisplay.py Lines: 461
Visvis core/line.py Lines: 734, 805
Visvis wobjects/polygonalModeling.py Lines: 917, 922
Visvis text/text_base.py Lines: 250, 266
{GPL3} OpenGL-Programmable 01-direct.py Lines: 233
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 332
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 386
{GPL3} OpenGL-Programmable 03-array.py Lines: 244
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 396
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 365
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 242
{GPL3} OpenGL-Programmable 05-shader.py Lines: 324
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 343
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 263