~matobet/pyopengl/Python3

« back to all changes in this revision

Viewing changes to GL/EXT/index_material.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 EXT.index_material
 
2
 
 
3
This module customises the behaviour of the 
 
4
OpenGL.raw.GL.EXT.index_material to provide a more 
 
5
Python-friendly API
 
6
 
 
7
Overview (from the spec)
 
8
        
 
9
        This extends color index lighting to include a way for the current
 
10
        index to contribute to the color index produced by lighting.  This
 
11
        works much like ColorMaterial does for RGBA lighting by allowing
 
12
        one or more color index material properties to be attached to the
 
13
        current index.
 
14
        
 
15
        The color index lighting formula is also modified so that the lit
 
16
        color index may be bitwise shifted in order to allow greater control
 
17
        when using lighting and fog together in color index mode.
 
18
 
 
19
The official definition of this extension is available here:
 
20
http://www.opengl.org/registry/specs/EXT/index_material.txt
 
21
'''
 
22
from OpenGL import platform, constants, constant, arrays
 
23
from OpenGL import extensions, wrapper
 
24
from OpenGL.GL import glget
 
25
import ctypes
 
26
from OpenGL.raw.GL.EXT.index_material import *
 
27
### END AUTOGENERATED SECTION
 
 
b'\\ No newline at end of file'