OpenGL.raw.GL.SUN.global_alpha
index
/build/buildd/pyopengl-3.0.0~b3/OpenGL/raw/GL/SUN/global_alpha.py

OpenGL extension SUN.global_alpha
 
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://oss.sgi.com/projects/ogl-sample/registry/SUN/global_alpha.txt
 
Automatically generated by the get_gl_extensions script, do not edit!

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

 
Functions
       
glInitGlobalAlphaSUN()
Return boolean indicating whether this extension is available

 
Data
        GL_GLOBAL_ALPHA_FACTOR_SUN = GL_GLOBAL_ALPHA_FACTOR_SUN
GL_GLOBAL_ALPHA_SUN = GL_GLOBAL_ALPHA_SUN
__file__ = '/build/buildd/pyopengl-3.0.0~b3/OpenGL/raw/GL/SUN/global_alpha.py'
__name__ = 'OpenGL.raw.GL.SUN.global_alpha'
glGlobalAlphaFactorbSUN = <OpenGL.platform.baseplatform.glGlobalAlphaFactorbSUN object at 0x89d2aec>
glGlobalAlphaFactordSUN = <OpenGL.platform.baseplatform.glGlobalAlphaFactordSUN object at 0x84787ac>
glGlobalAlphaFactorfSUN = <OpenGL.platform.baseplatform.glGlobalAlphaFactorfSUN object at 0x84786ac>
glGlobalAlphaFactoriSUN = <OpenGL.platform.baseplatform.glGlobalAlphaFactoriSUN object at 0x847870c>
glGlobalAlphaFactorsSUN = <OpenGL.platform.baseplatform.glGlobalAlphaFactorsSUN object at 0x847868c>
glGlobalAlphaFactorubSUN = <OpenGL.platform.baseplatform.glGlobalAlphaFactorubSUN object at 0x847880c>
glGlobalAlphaFactoruiSUN = <OpenGL.platform.baseplatform.glGlobalAlphaFactoruiSUN object at 0x84788cc>
glGlobalAlphaFactorusSUN = <OpenGL.platform.baseplatform.glGlobalAlphaFactorusSUN object at 0x847886c>