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 / EXT / gpu_shader4.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  6.4 KB  |  141 lines

  1. '''OpenGL extension EXT.gpu_shader4
  2.  
  3. The official definition of this extension is available here:
  4.     http://oss.sgi.com/projects/ogl-sample/registry/EXT/gpu_shader4.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_EXT_gpu_shader4'
  13. GL_SAMPLER_1D_ARRAY_EXT = constant.Constant( 'GL_SAMPLER_1D_ARRAY_EXT', 0x8DC0 )
  14. GL_SAMPLER_2D_ARRAY_EXT = constant.Constant( 'GL_SAMPLER_2D_ARRAY_EXT', 0x8DC1 )
  15. GL_SAMPLER_BUFFER_EXT = constant.Constant( 'GL_SAMPLER_BUFFER_EXT', 0x8DC2 )
  16. GL_SAMPLER_1D_ARRAY_SHADOW_EXT = constant.Constant( 'GL_SAMPLER_1D_ARRAY_SHADOW_EXT', 0x8DC3 )
  17. GL_SAMPLER_2D_ARRAY_SHADOW_EXT = constant.Constant( 'GL_SAMPLER_2D_ARRAY_SHADOW_EXT', 0x8DC4 )
  18. GL_SAMPLER_CUBE_SHADOW_EXT = constant.Constant( 'GL_SAMPLER_CUBE_SHADOW_EXT', 0x8DC5 )
  19. GL_UNSIGNED_INT_VEC2_EXT = constant.Constant( 'GL_UNSIGNED_INT_VEC2_EXT', 0x8DC6 )
  20. GL_UNSIGNED_INT_VEC3_EXT = constant.Constant( 'GL_UNSIGNED_INT_VEC3_EXT', 0x8DC7 )
  21. GL_UNSIGNED_INT_VEC4_EXT = constant.Constant( 'GL_UNSIGNED_INT_VEC4_EXT', 0x8DC8 )
  22. GL_INT_SAMPLER_1D_EXT = constant.Constant( 'GL_INT_SAMPLER_1D_EXT', 0x8DC9 )
  23. GL_INT_SAMPLER_2D_EXT = constant.Constant( 'GL_INT_SAMPLER_2D_EXT', 0x8DCA )
  24. GL_INT_SAMPLER_3D_EXT = constant.Constant( 'GL_INT_SAMPLER_3D_EXT', 0x8DCB )
  25. GL_INT_SAMPLER_CUBE_EXT = constant.Constant( 'GL_INT_SAMPLER_CUBE_EXT', 0x8DCC )
  26. GL_INT_SAMPLER_2D_RECT_EXT = constant.Constant( 'GL_INT_SAMPLER_2D_RECT_EXT', 0x8DCD )
  27. GL_INT_SAMPLER_1D_ARRAY_EXT = constant.Constant( 'GL_INT_SAMPLER_1D_ARRAY_EXT', 0x8DCE )
  28. GL_INT_SAMPLER_2D_ARRAY_EXT = constant.Constant( 'GL_INT_SAMPLER_2D_ARRAY_EXT', 0x8DCF )
  29. GL_INT_SAMPLER_BUFFER_EXT = constant.Constant( 'GL_INT_SAMPLER_BUFFER_EXT', 0x8DD0 )
  30. GL_UNSIGNED_INT_SAMPLER_1D_EXT = constant.Constant( 'GL_UNSIGNED_INT_SAMPLER_1D_EXT', 0x8DD1 )
  31. GL_UNSIGNED_INT_SAMPLER_2D_EXT = constant.Constant( 'GL_UNSIGNED_INT_SAMPLER_2D_EXT', 0x8DD2 )
  32. GL_UNSIGNED_INT_SAMPLER_3D_EXT = constant.Constant( 'GL_UNSIGNED_INT_SAMPLER_3D_EXT', 0x8DD3 )
  33. GL_UNSIGNED_INT_SAMPLER_CUBE_EXT = constant.Constant( 'GL_UNSIGNED_INT_SAMPLER_CUBE_EXT', 0x8DD4 )
  34. GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT = constant.Constant( 'GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT', 0x8DD5 )
  35. GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT = constant.Constant( 'GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT', 0x8DD6 )
  36. GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT = constant.Constant( 'GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT', 0x8DD7 )
  37. GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT = constant.Constant( 'GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT', 0x8DD8 )
  38. glGetUniformuivEXT = platform.createExtensionFunction( 
  39.     'glGetUniformuivEXT', dll=platform.GL,
  40.     extension=EXTENSION_NAME,
  41.     resultType=None, 
  42.     argTypes=(constants.GLuint, constants.GLint, arrays.GLuintArray,),
  43.     doc = 'glGetUniformuivEXT( GLuint(program), GLint(location), GLuintArray(params) ) -> None',
  44.     argNames = ('program', 'location', 'params',),
  45. )
  46.  
  47. glBindFragDataLocationEXT = platform.createExtensionFunction( 
  48.     'glBindFragDataLocationEXT', dll=platform.GL,
  49.     extension=EXTENSION_NAME,
  50.     resultType=None, 
  51.     argTypes=(constants.GLuint, constants.GLuint, arrays.GLcharArray,),
  52.     doc = 'glBindFragDataLocationEXT( GLuint(program), GLuint(color), GLcharArray(name) ) -> None',
  53.     argNames = ('program', 'color', 'name',),
  54. )
  55.  
  56. glGetFragDataLocationEXT = platform.createExtensionFunction( 
  57.     'glGetFragDataLocationEXT', dll=platform.GL,
  58.     extension=EXTENSION_NAME,
  59.     resultType=constants.GLint, 
  60.     argTypes=(constants.GLuint, arrays.GLcharArray,),
  61.     doc = 'glGetFragDataLocationEXT( GLuint(program), GLcharArray(name) ) -> constants.GLint',
  62.     argNames = ('program', 'name',),
  63. )
  64.  
  65. glUniform1uiEXT = platform.createExtensionFunction( 
  66.     'glUniform1uiEXT', dll=platform.GL,
  67.     extension=EXTENSION_NAME,
  68.     resultType=None, 
  69.     argTypes=(constants.GLint, constants.GLuint,),
  70.     doc = 'glUniform1uiEXT( GLint(location), GLuint(v0) ) -> None',
  71.     argNames = ('location', 'v0',),
  72. )
  73.  
  74. glUniform2uiEXT = platform.createExtensionFunction( 
  75.     'glUniform2uiEXT', dll=platform.GL,
  76.     extension=EXTENSION_NAME,
  77.     resultType=None, 
  78.     argTypes=(constants.GLint, constants.GLuint, constants.GLuint,),
  79.     doc = 'glUniform2uiEXT( GLint(location), GLuint(v0), GLuint(v1) ) -> None',
  80.     argNames = ('location', 'v0', 'v1',),
  81. )
  82.  
  83. glUniform3uiEXT = platform.createExtensionFunction( 
  84.     'glUniform3uiEXT', dll=platform.GL,
  85.     extension=EXTENSION_NAME,
  86.     resultType=None, 
  87.     argTypes=(constants.GLint, constants.GLuint, constants.GLuint, constants.GLuint,),
  88.     doc = 'glUniform3uiEXT( GLint(location), GLuint(v0), GLuint(v1), GLuint(v2) ) -> None',
  89.     argNames = ('location', 'v0', 'v1', 'v2',),
  90. )
  91.  
  92. glUniform4uiEXT = platform.createExtensionFunction( 
  93.     'glUniform4uiEXT', dll=platform.GL,
  94.     extension=EXTENSION_NAME,
  95.     resultType=None, 
  96.     argTypes=(constants.GLint, constants.GLuint, constants.GLuint, constants.GLuint, constants.GLuint,),
  97.     doc = 'glUniform4uiEXT( GLint(location), GLuint(v0), GLuint(v1), GLuint(v2), GLuint(v3) ) -> None',
  98.     argNames = ('location', 'v0', 'v1', 'v2', 'v3',),
  99. )
  100.  
  101. glUniform1uivEXT = platform.createExtensionFunction( 
  102.     'glUniform1uivEXT', dll=platform.GL,
  103.     extension=EXTENSION_NAME,
  104.     resultType=None, 
  105.     argTypes=(constants.GLint, constants.GLsizei, arrays.GLuintArray,),
  106.     doc = 'glUniform1uivEXT( GLint(location), GLsizei(count), GLuintArray(value) ) -> None',
  107.     argNames = ('location', 'count', 'value',),
  108. )
  109.  
  110. glUniform2uivEXT = platform.createExtensionFunction( 
  111.     'glUniform2uivEXT', dll=platform.GL,
  112.     extension=EXTENSION_NAME,
  113.     resultType=None, 
  114.     argTypes=(constants.GLint, constants.GLsizei, arrays.GLuintArray,),
  115.     doc = 'glUniform2uivEXT( GLint(location), GLsizei(count), GLuintArray(value) ) -> None',
  116.     argNames = ('location', 'count', 'value',),
  117. )
  118.  
  119. glUniform3uivEXT = platform.createExtensionFunction( 
  120.     'glUniform3uivEXT', dll=platform.GL,
  121.     extension=EXTENSION_NAME,
  122.     resultType=None, 
  123.     argTypes=(constants.GLint, constants.GLsizei, arrays.GLuintArray,),
  124.     doc = 'glUniform3uivEXT( GLint(location), GLsizei(count), GLuintArray(value) ) -> None',
  125.     argNames = ('location', 'count', 'value',),
  126. )
  127.  
  128. glUniform4uivEXT = platform.createExtensionFunction( 
  129.     'glUniform4uivEXT', dll=platform.GL,
  130.     extension=EXTENSION_NAME,
  131.     resultType=None, 
  132.     argTypes=(constants.GLint, constants.GLsizei, arrays.GLuintArray,),
  133.     doc = 'glUniform4uivEXT( GLint(location), GLsizei(count), GLuintArray(value) ) -> None',
  134.     argNames = ('location', 'count', 'value',),
  135. )
  136.  
  137.  
  138. def glInitGpuShader4EXT():
  139.     '''Return boolean indicating whether this extension is available'''
  140.     return extensions.hasGLExtension( EXTENSION_NAME )
  141.