~matobet/pyopengl/Python3

« back to all changes in this revision

Viewing changes to GL/NV/texture_env_combine4.py

  • Committer: matobet at gmail
  • Date: 2010-06-26 14:11:04 UTC
  • Revision ID: matobet@gmail.com-20100626141104-k011ofmltgiiu60g
Initial

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'''OpenGL extension NV.texture_env_combine4
 
2
 
 
3
This module customises the behaviour of the 
 
4
OpenGL.raw.GL.NV.texture_env_combine4 to provide a more 
 
5
Python-friendly API
 
6
 
 
7
Overview (from the spec)
 
8
        
 
9
        New texture environment function COMBINE4_NV allows programmable
 
10
        texture combiner operations, including
 
11
        
 
12
            ADD                     Arg0 * Arg1 + Arg2 * Arg3
 
13
            ADD_SIGNED_EXT          Arg0 * Arg1 + Arg2 * Arg3 - 0.5
 
14
        
 
15
        where Arg0, Arg1, Arg2 and Arg3 are derived from
 
16
        
 
17
            ZERO                    the value 0
 
18
            PRIMARY_COLOR_EXT       primary color of incoming fragment
 
19
            TEXTURE                 texture color of corresponding texture unit
 
20
            CONSTANT_EXT            texture environment constant color
 
21
            PREVIOUS_EXT            result of previous texture environment; on
 
22
                                    texture unit 0, this maps to PRIMARY_COLOR_EXT
 
23
            TEXTURE<n>_ARB          texture color of the <n>th texture unit
 
24
        
 
25
        In addition, the result may be scaled by 1.0, 2.0 or 4.0.
 
26
 
 
27
The official definition of this extension is available here:
 
28
http://www.opengl.org/registry/specs/NV/texture_env_combine4.txt
 
29
'''
 
30
from OpenGL import platform, constants, constant, arrays
 
31
from OpenGL import extensions, wrapper
 
32
from OpenGL.GL import glget
 
33
import ctypes
 
34
from OpenGL.raw.GL.NV.texture_env_combine4 import *
 
35
### END AUTOGENERATED SECTION
 
 
b'\\ No newline at end of file'