File: color_table.py

package info (click to toggle)
pyopengl 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,140 kB
  • sloc: python: 26,428; makefile: 2
file content (103 lines) | stat: -rw-r--r-- 4,978 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
'''OpenGL extension SGI.color_table

Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_SGI_color_table'
_DEPRECATED = False
GL_COLOR_TABLE_SGI = constant.Constant( 'GL_COLOR_TABLE_SGI', 0x80D0 )
glget.addGLGetConstant( GL_COLOR_TABLE_SGI, (1,) )
GL_POST_CONVOLUTION_COLOR_TABLE_SGI = constant.Constant( 'GL_POST_CONVOLUTION_COLOR_TABLE_SGI', 0x80D1 )
glget.addGLGetConstant( GL_POST_CONVOLUTION_COLOR_TABLE_SGI, (1,) )
GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI = constant.Constant( 'GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI', 0x80D2 )
glget.addGLGetConstant( GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI, (1,) )
GL_PROXY_COLOR_TABLE_SGI = constant.Constant( 'GL_PROXY_COLOR_TABLE_SGI', 0x80D3 )
GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI = constant.Constant( 'GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI', 0x80D4 )
GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI = constant.Constant( 'GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI', 0x80D5 )
GL_COLOR_TABLE_SCALE_SGI = constant.Constant( 'GL_COLOR_TABLE_SCALE_SGI', 0x80D6 )
GL_COLOR_TABLE_BIAS_SGI = constant.Constant( 'GL_COLOR_TABLE_BIAS_SGI', 0x80D7 )
GL_COLOR_TABLE_FORMAT_SGI = constant.Constant( 'GL_COLOR_TABLE_FORMAT_SGI', 0x80D8 )
GL_COLOR_TABLE_WIDTH_SGI = constant.Constant( 'GL_COLOR_TABLE_WIDTH_SGI', 0x80D9 )
GL_COLOR_TABLE_RED_SIZE_SGI = constant.Constant( 'GL_COLOR_TABLE_RED_SIZE_SGI', 0x80DA )
GL_COLOR_TABLE_GREEN_SIZE_SGI = constant.Constant( 'GL_COLOR_TABLE_GREEN_SIZE_SGI', 0x80DB )
GL_COLOR_TABLE_BLUE_SIZE_SGI = constant.Constant( 'GL_COLOR_TABLE_BLUE_SIZE_SGI', 0x80DC )
GL_COLOR_TABLE_ALPHA_SIZE_SGI = constant.Constant( 'GL_COLOR_TABLE_ALPHA_SIZE_SGI', 0x80DD )
GL_COLOR_TABLE_LUMINANCE_SIZE_SGI = constant.Constant( 'GL_COLOR_TABLE_LUMINANCE_SIZE_SGI', 0x80DE )
GL_COLOR_TABLE_INTENSITY_SIZE_SGI = constant.Constant( 'GL_COLOR_TABLE_INTENSITY_SIZE_SGI', 0x80DF )
glColorTableSGI = platform.createExtensionFunction( 
'glColorTableSGI',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLenum,constants.GLsizei,constants.GLenum,constants.GLenum,ctypes.c_void_p,),
doc='glColorTableSGI(GLenum(target), GLenum(internalformat), GLsizei(width), GLenum(format), GLenum(type), c_void_p(table)) -> None',
argNames=('target','internalformat','width','format','type','table',),
deprecated=_DEPRECATED,
)

glColorTableParameterfvSGI = platform.createExtensionFunction( 
'glColorTableParameterfvSGI',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLenum,arrays.GLfloatArray,),
doc='glColorTableParameterfvSGI(GLenum(target), GLenum(pname), GLfloatArray(params)) -> None',
argNames=('target','pname','params',),
deprecated=_DEPRECATED,
)

glColorTableParameterivSGI = platform.createExtensionFunction( 
'glColorTableParameterivSGI',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLenum,arrays.GLintArray,),
doc='glColorTableParameterivSGI(GLenum(target), GLenum(pname), GLintArray(params)) -> None',
argNames=('target','pname','params',),
deprecated=_DEPRECATED,
)

glCopyColorTableSGI = platform.createExtensionFunction( 
'glCopyColorTableSGI',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLenum,constants.GLint,constants.GLint,constants.GLsizei,),
doc='glCopyColorTableSGI(GLenum(target), GLenum(internalformat), GLint(x), GLint(y), GLsizei(width)) -> None',
argNames=('target','internalformat','x','y','width',),
deprecated=_DEPRECATED,
)

glGetColorTableSGI = platform.createExtensionFunction( 
'glGetColorTableSGI',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLenum,constants.GLenum,ctypes.c_void_p,),
doc='glGetColorTableSGI(GLenum(target), GLenum(format), GLenum(type), c_void_p(table)) -> None',
argNames=('target','format','type','table',),
deprecated=_DEPRECATED,
)

glGetColorTableParameterfvSGI = platform.createExtensionFunction( 
'glGetColorTableParameterfvSGI',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLenum,arrays.GLfloatArray,),
doc='glGetColorTableParameterfvSGI(GLenum(target), GLenum(pname), GLfloatArray(params)) -> None',
argNames=('target','pname','params',),
deprecated=_DEPRECATED,
)

glGetColorTableParameterivSGI = platform.createExtensionFunction( 
'glGetColorTableParameterivSGI',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLenum,arrays.GLintArray,),
doc='glGetColorTableParameterivSGI(GLenum(target), GLenum(pname), GLintArray(params)) -> None',
argNames=('target','pname','params',),
deprecated=_DEPRECATED,
)


def glInitColorTableSGI():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension( EXTENSION_NAME )