specify the alpha test function


glAlphaFunc( GLenum ( func ) , GLclampf ( ref ) )-> void
glAlphaFunc( func , ref )


Specifies the alpha 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_ALWAYS .
Specifies the reference value that incoming alpha values are compared to. This value is clamped to the range 0 1 , where 0 represents the lowest possible alpha value and 1 the highest possible value. The initial reference value is 0.

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.

OpenGLContext tests/ Lines: 90
OpenGLContext tests/ Lines: 58
OpenGLContext tests/ Lines: 672
{LGPL} Pyggel pyggel/ Lines: 182
{LGPL} pygl2d pygl2d/ Lines: 66
Visvis core/ Lines: 739
{GPL3} OpenGL-Programmable Lines: 249
{GPL3} OpenGL-Programmable Lines: 260
{GPL3} OpenGL-Programmable Lines: 258
{GPL3} OpenGL-Programmable Lines: 279

MathML Rendering

Powered by MathJax