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
|
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p, constants as _cs, arrays
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_SGI_color_table'
def _f( function ):
return _p.createFunction( function,_p.GL,'GL_SGI_color_table',False)
_p.unpack_constants( """GL_COLOR_TABLE_SGI 0x80D0
GL_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D1
GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D2
GL_PROXY_COLOR_TABLE_SGI 0x80D3
GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D4
GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D5
GL_COLOR_TABLE_SCALE_SGI 0x80D6
GL_COLOR_TABLE_BIAS_SGI 0x80D7
GL_COLOR_TABLE_FORMAT_SGI 0x80D8
GL_COLOR_TABLE_WIDTH_SGI 0x80D9
GL_COLOR_TABLE_RED_SIZE_SGI 0x80DA
GL_COLOR_TABLE_GREEN_SIZE_SGI 0x80DB
GL_COLOR_TABLE_BLUE_SIZE_SGI 0x80DC
GL_COLOR_TABLE_ALPHA_SIZE_SGI 0x80DD
GL_COLOR_TABLE_LUMINANCE_SIZE_SGI 0x80DE
GL_COLOR_TABLE_INTENSITY_SIZE_SGI 0x80DF""", globals())
glget.addGLGetConstant( GL_COLOR_TABLE_SGI, (1,) )
glget.addGLGetConstant( GL_POST_CONVOLUTION_COLOR_TABLE_SGI, (1,) )
glget.addGLGetConstant( GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI, (1,) )
@_f
@_p.types(None,_cs.GLenum,_cs.GLenum,_cs.GLsizei,_cs.GLenum,_cs.GLenum,ctypes.c_void_p)
def glColorTableSGI( target,internalformat,width,format,type,table ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLenum,arrays.GLfloatArray)
def glColorTableParameterfvSGI( target,pname,params ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLenum,arrays.GLintArray)
def glColorTableParameterivSGI( target,pname,params ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLenum,_cs.GLint,_cs.GLint,_cs.GLsizei)
def glCopyColorTableSGI( target,internalformat,x,y,width ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLenum,_cs.GLenum,ctypes.c_void_p)
def glGetColorTableSGI( target,format,type,table ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLenum,arrays.GLfloatArray)
def glGetColorTableParameterfvSGI( target,pname,params ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLenum,arrays.GLintArray)
def glGetColorTableParameterivSGI( target,pname,params ):pass
def glInitColorTableSGI():
'''Return boolean indicating whether this extension is available'''
from OpenGL import extensions
return extensions.hasGLExtension( EXTENSION_NAME )
|