OpenGL.GL.SUN.global_alpha
index
/home/mcfletch/pylive/OpenGL/GL/SUN/global_alpha.py

OpenGL extension SUN.global_alpha
 
This module customises the behaviour of the 
OpenGL.raw.GL.SUN.global_alpha to provide a more 
Python-friendly API
 
Overview (from the spec)
        
        Transparency is done in OpenGL using alpha blending. An alpha value
        of 0.0 is used for fully transparent objects, while an alpha value
        of 1.0 is used for fully opaque objects.  A value of 0.25 is 75%
        transparent, and so on.
        
        OpenGL defines alpha as a component of the vertex color state.
        Whenever a color is set, the alpha component is set along with the
        red, green, and blue components.  This means that transparency
        can't be changed for primitives with per-vertex colors without
        modifying the color of each vertex, replacing the old alpha
        component with the new alpha component.  This can be very expensive
        for objects that are drawn using vertex arrays; it all but
        precludes the use of display lists.
        
        This extension defines a new global alpha attribute that can be
        used to specify an alpha factor that is independent from the alpha
        component of the color value.  The global alpha factor is
        multiplied by the fragment's alpha value after primitive
        rasterization and prior to texture mapping, replacing the
        fragment's alpha value.  The global alpha extension is only
        specified in RGBA mode and must be applied prior to any texture
        mapping operation.  It is enabled by a new GLOBAL_ALPHA flag.
        
 
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/SUN/global_alpha.txt

 
Modules
       
OpenGL.arrays
OpenGL.constant
OpenGL.constants
ctypes
OpenGL.extensions
OpenGL.GL.glget
OpenGL.platform
OpenGL.wrapper

 
Data
        EXTENSION_NAME = 'GL_SUN_global_alpha'
GL_GLOBAL_ALPHA_FACTOR_SUN = GL_GLOBAL_ALPHA_FACTOR_SUN
GL_GLOBAL_ALPHA_SUN = GL_GLOBAL_ALPHA_SUN
__file__ = '/home/mcfletch/pylive/OpenGL/GL/SUN/global_alpha.pyc'
__name__ = 'OpenGL.GL.SUN.global_alpha'
__package__ = 'OpenGL.GL.SUN'
glGlobalAlphaFactorbSUN = <OpenGL.platform.baseplatform.glGlobalAlphaFactorbSUN object at 0x7a8f3d0>
glGlobalAlphaFactordSUN = <OpenGL.platform.baseplatform.glGlobalAlphaFactordSUN object at 0x7a8f690>
glGlobalAlphaFactorfSUN = <OpenGL.platform.baseplatform.glGlobalAlphaFactorfSUN object at 0x7a8f5d0>
glGlobalAlphaFactoriSUN = <OpenGL.platform.baseplatform.glGlobalAlphaFactoriSUN object at 0x7a8f510>
glGlobalAlphaFactorsSUN = <OpenGL.platform.baseplatform.glGlobalAlphaFactorsSUN object at 0x7a89910>
glGlobalAlphaFactorubSUN = <OpenGL.platform.baseplatform.glGlobalAlphaFactorubSUN object at 0x7a8f750>
glGlobalAlphaFactoruiSUN = <OpenGL.platform.baseplatform.glGlobalAlphaFactoruiSUN object at 0x7a8f890>
glGlobalAlphaFactorusSUN = <OpenGL.platform.baseplatform.glGlobalAlphaFactorusSUN object at 0x7a8f790>