home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Multimedia / k3d-setup-0.7.11.0.exe / lib / site-packages / OpenGL / raw / GL / ARB / imaging.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  6.5 KB  |  94 lines

  1. '''OpenGL extension ARB.imaging
  2.  
  3. The official definition of this extension is available here:
  4.     http://oss.sgi.com/projects/ogl-sample/registry/ARB/imaging.txt
  5.  
  6. Automatically generated by the get_gl_extensions script, do not edit!
  7. '''
  8. from OpenGL import platform, constants, constant, arrays
  9. from OpenGL import extensions
  10. from OpenGL.GL import glget
  11. import ctypes
  12. EXTENSION_NAME = 'GL_ARB_imaging'
  13. GL_CONSTANT_COLOR = constant.Constant( 'GL_CONSTANT_COLOR', 0x8001 )
  14. GL_ONE_MINUS_CONSTANT_COLOR = constant.Constant( 'GL_ONE_MINUS_CONSTANT_COLOR', 0x8002 )
  15. GL_CONSTANT_ALPHA = constant.Constant( 'GL_CONSTANT_ALPHA', 0x8003 )
  16. GL_ONE_MINUS_CONSTANT_ALPHA = constant.Constant( 'GL_ONE_MINUS_CONSTANT_ALPHA', 0x8004 )
  17. GL_BLEND_COLOR = constant.Constant( 'GL_BLEND_COLOR', 0x8005 )
  18. GL_FUNC_ADD = constant.Constant( 'GL_FUNC_ADD', 0x8006 )
  19. GL_MIN = constant.Constant( 'GL_MIN', 0x8007 )
  20. GL_MAX = constant.Constant( 'GL_MAX', 0x8008 )
  21. GL_BLEND_EQUATION = constant.Constant( 'GL_BLEND_EQUATION', 0x8009 )
  22. GL_FUNC_SUBTRACT = constant.Constant( 'GL_FUNC_SUBTRACT', 0x800A )
  23. GL_FUNC_REVERSE_SUBTRACT = constant.Constant( 'GL_FUNC_REVERSE_SUBTRACT', 0x800B )
  24. GL_CONVOLUTION_1D = constant.Constant( 'GL_CONVOLUTION_1D', 0x8010 )
  25. GL_CONVOLUTION_2D = constant.Constant( 'GL_CONVOLUTION_2D', 0x8011 )
  26. GL_SEPARABLE_2D = constant.Constant( 'GL_SEPARABLE_2D', 0x8012 )
  27. GL_CONVOLUTION_BORDER_MODE = constant.Constant( 'GL_CONVOLUTION_BORDER_MODE', 0x8013 )
  28. GL_CONVOLUTION_FILTER_SCALE = constant.Constant( 'GL_CONVOLUTION_FILTER_SCALE', 0x8014 )
  29. GL_CONVOLUTION_FILTER_BIAS = constant.Constant( 'GL_CONVOLUTION_FILTER_BIAS', 0x8015 )
  30. GL_REDUCE = constant.Constant( 'GL_REDUCE', 0x8016 )
  31. GL_CONVOLUTION_FORMAT = constant.Constant( 'GL_CONVOLUTION_FORMAT', 0x8017 )
  32. GL_CONVOLUTION_WIDTH = constant.Constant( 'GL_CONVOLUTION_WIDTH', 0x8018 )
  33. GL_CONVOLUTION_HEIGHT = constant.Constant( 'GL_CONVOLUTION_HEIGHT', 0x8019 )
  34. GL_MAX_CONVOLUTION_WIDTH = constant.Constant( 'GL_MAX_CONVOLUTION_WIDTH', 0x801A )
  35. GL_MAX_CONVOLUTION_HEIGHT = constant.Constant( 'GL_MAX_CONVOLUTION_HEIGHT', 0x801B )
  36. GL_POST_CONVOLUTION_RED_SCALE = constant.Constant( 'GL_POST_CONVOLUTION_RED_SCALE', 0x801C )
  37. GL_POST_CONVOLUTION_GREEN_SCALE = constant.Constant( 'GL_POST_CONVOLUTION_GREEN_SCALE', 0x801D )
  38. GL_POST_CONVOLUTION_BLUE_SCALE = constant.Constant( 'GL_POST_CONVOLUTION_BLUE_SCALE', 0x801E )
  39. GL_POST_CONVOLUTION_ALPHA_SCALE = constant.Constant( 'GL_POST_CONVOLUTION_ALPHA_SCALE', 0x801F )
  40. GL_POST_CONVOLUTION_RED_BIAS = constant.Constant( 'GL_POST_CONVOLUTION_RED_BIAS', 0x8020 )
  41. GL_POST_CONVOLUTION_GREEN_BIAS = constant.Constant( 'GL_POST_CONVOLUTION_GREEN_BIAS', 0x8021 )
  42. GL_POST_CONVOLUTION_BLUE_BIAS = constant.Constant( 'GL_POST_CONVOLUTION_BLUE_BIAS', 0x8022 )
  43. GL_POST_CONVOLUTION_ALPHA_BIAS = constant.Constant( 'GL_POST_CONVOLUTION_ALPHA_BIAS', 0x8023 )
  44. GL_HISTOGRAM = constant.Constant( 'GL_HISTOGRAM', 0x8024 )
  45. GL_PROXY_HISTOGRAM = constant.Constant( 'GL_PROXY_HISTOGRAM', 0x8025 )
  46. GL_HISTOGRAM_WIDTH = constant.Constant( 'GL_HISTOGRAM_WIDTH', 0x8026 )
  47. GL_HISTOGRAM_FORMAT = constant.Constant( 'GL_HISTOGRAM_FORMAT', 0x8027 )
  48. GL_HISTOGRAM_RED_SIZE = constant.Constant( 'GL_HISTOGRAM_RED_SIZE', 0x8028 )
  49. GL_HISTOGRAM_GREEN_SIZE = constant.Constant( 'GL_HISTOGRAM_GREEN_SIZE', 0x8029 )
  50. GL_HISTOGRAM_BLUE_SIZE = constant.Constant( 'GL_HISTOGRAM_BLUE_SIZE', 0x802A )
  51. GL_HISTOGRAM_ALPHA_SIZE = constant.Constant( 'GL_HISTOGRAM_ALPHA_SIZE', 0x802B )
  52. GL_HISTOGRAM_LUMINANCE_SIZE = constant.Constant( 'GL_HISTOGRAM_LUMINANCE_SIZE', 0x802C )
  53. GL_HISTOGRAM_SINK = constant.Constant( 'GL_HISTOGRAM_SINK', 0x802D )
  54. GL_MINMAX = constant.Constant( 'GL_MINMAX', 0x802E )
  55. GL_MINMAX_FORMAT = constant.Constant( 'GL_MINMAX_FORMAT', 0x802F )
  56. GL_MINMAX_SINK = constant.Constant( 'GL_MINMAX_SINK', 0x8030 )
  57. GL_TABLE_TOO_LARGE = constant.Constant( 'GL_TABLE_TOO_LARGE', 0x8031 )
  58. GL_COLOR_MATRIX = constant.Constant( 'GL_COLOR_MATRIX', 0x80B1 )
  59. glget.addGLGetConstant( GL_COLOR_MATRIX, (4,4) )
  60. GL_COLOR_MATRIX_STACK_DEPTH = constant.Constant( 'GL_COLOR_MATRIX_STACK_DEPTH', 0x80B2 )
  61. GL_MAX_COLOR_MATRIX_STACK_DEPTH = constant.Constant( 'GL_MAX_COLOR_MATRIX_STACK_DEPTH', 0x80B3 )
  62. GL_POST_COLOR_MATRIX_RED_SCALE = constant.Constant( 'GL_POST_COLOR_MATRIX_RED_SCALE', 0x80B4 )
  63. GL_POST_COLOR_MATRIX_GREEN_SCALE = constant.Constant( 'GL_POST_COLOR_MATRIX_GREEN_SCALE', 0x80B5 )
  64. GL_POST_COLOR_MATRIX_BLUE_SCALE = constant.Constant( 'GL_POST_COLOR_MATRIX_BLUE_SCALE', 0x80B6 )
  65. GL_POST_COLOR_MATRIX_ALPHA_SCALE = constant.Constant( 'GL_POST_COLOR_MATRIX_ALPHA_SCALE', 0x80B7 )
  66. GL_POST_COLOR_MATRIX_RED_BIAS = constant.Constant( 'GL_POST_COLOR_MATRIX_RED_BIAS', 0x80B8 )
  67. GL_POST_COLOR_MATRIX_GREEN_BIAS = constant.Constant( 'GL_POST_COLOR_MATRIX_GREEN_BIAS', 0x80B9 )
  68. GL_POST_COLOR_MATRIX_BLUE_BIAS = constant.Constant( 'GL_POST_COLOR_MATRIX_BLUE_BIAS', 0x80BA )
  69. GL_POST_COLOR_MATRIX_ALPHA_BIAS = constant.Constant( 'GL_POST_COLOR_MATRIX_ALPHA_BIAS', 0x80BB )
  70. GL_COLOR_TABLE = constant.Constant( 'GL_COLOR_TABLE', 0x80D0 )
  71. GL_POST_CONVOLUTION_COLOR_TABLE = constant.Constant( 'GL_POST_CONVOLUTION_COLOR_TABLE', 0x80D1 )
  72. GL_POST_COLOR_MATRIX_COLOR_TABLE = constant.Constant( 'GL_POST_COLOR_MATRIX_COLOR_TABLE', 0x80D2 )
  73. GL_PROXY_COLOR_TABLE = constant.Constant( 'GL_PROXY_COLOR_TABLE', 0x80D3 )
  74. GL_PROXY_POST_CONVOLUTION_COLOR_TABLE = constant.Constant( 'GL_PROXY_POST_CONVOLUTION_COLOR_TABLE', 0x80D4 )
  75. GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE = constant.Constant( 'GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE', 0x80D5 )
  76. GL_COLOR_TABLE_SCALE = constant.Constant( 'GL_COLOR_TABLE_SCALE', 0x80D6 )
  77. GL_COLOR_TABLE_BIAS = constant.Constant( 'GL_COLOR_TABLE_BIAS', 0x80D7 )
  78. GL_COLOR_TABLE_FORMAT = constant.Constant( 'GL_COLOR_TABLE_FORMAT', 0x80D8 )
  79. GL_COLOR_TABLE_WIDTH = constant.Constant( 'GL_COLOR_TABLE_WIDTH', 0x80D9 )
  80. GL_COLOR_TABLE_RED_SIZE = constant.Constant( 'GL_COLOR_TABLE_RED_SIZE', 0x80DA )
  81. GL_COLOR_TABLE_GREEN_SIZE = constant.Constant( 'GL_COLOR_TABLE_GREEN_SIZE', 0x80DB )
  82. GL_COLOR_TABLE_BLUE_SIZE = constant.Constant( 'GL_COLOR_TABLE_BLUE_SIZE', 0x80DC )
  83. GL_COLOR_TABLE_ALPHA_SIZE = constant.Constant( 'GL_COLOR_TABLE_ALPHA_SIZE', 0x80DD )
  84. GL_COLOR_TABLE_LUMINANCE_SIZE = constant.Constant( 'GL_COLOR_TABLE_LUMINANCE_SIZE', 0x80DE )
  85. GL_COLOR_TABLE_INTENSITY_SIZE = constant.Constant( 'GL_COLOR_TABLE_INTENSITY_SIZE', 0x80DF )
  86. GL_CONSTANT_BORDER = constant.Constant( 'GL_CONSTANT_BORDER', 0x8151 )
  87. GL_REPLICATE_BORDER = constant.Constant( 'GL_REPLICATE_BORDER', 0x8153 )
  88. GL_CONVOLUTION_BORDER_COLOR = constant.Constant( 'GL_CONVOLUTION_BORDER_COLOR', 0x8154 )
  89.  
  90.  
  91. def glInitImagingARB():
  92.     '''Return boolean indicating whether this extension is available'''
  93.     return extensions.hasGLExtension( EXTENSION_NAME )
  94.