glAlphaFunc

specify the alpha test function

Signature

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

Parameters

VariablesDescription
func
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 .
ref
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.

glAlphaFunc
OpenGLContext tests/arbwindowpos.py Lines: 90
OpenGLContext tests/gldrawpixels.py Lines: 58
OpenGLContext tests/shadow_1.py Lines: 672
{LGPL} Pyggel pyggel/view.py Lines: 182
{LGPL} pygl2d pygl2d/window.py Lines: 66
Visvis core/line.py Lines: 739
{GPL3} OpenGL-Programmable 01-direct.py Lines: 249
{GPL3} OpenGL-Programmable 03-array.py Lines: 260
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 258
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 279

MathML Rendering

Powered by MathJax