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 / vertex_blend.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  7.7 KB  |  176 lines

  1. '''OpenGL extension ARB.vertex_blend
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension provides the ability to replace the single
  6.     modelview transformation with a set of n vertex units. (Where
  7.     n is constrained to an implementation defined maximum.) Each
  8.     unit has its own modelview transform matrix. For each unit,
  9.     there is a current weight associated with the vertex. When
  10.     this extension is enabled the vertices are transformed by
  11.     the modelview matrices of all of the enabled units. Afterward,
  12.     these results are scaled by the weights for the respective
  13.     units and then summed to create the eye-space vertex. A
  14.     similar procedure is followed for the normals, except they
  15.     are transformed by the inverse transpose of the modelview
  16.     matrices.
  17.     
  18.     This extension is an orthoganalized version of functionality
  19.     already provided by other 3D graphics API's.
  20.     
  21.  
  22. The official definition of this extension is available here:
  23.     http://oss.sgi.com/projects/ogl-sample/registry/ARB/vertex_blend.txt
  24.  
  25. Automatically generated by the get_gl_extensions script, do not edit!
  26. '''
  27. from OpenGL import platform, constants, constant, arrays
  28. from OpenGL import extensions
  29. from OpenGL.GL import glget
  30. import ctypes
  31. EXTENSION_NAME = 'GL_ARB_vertex_blend'
  32. GL_MAX_VERTEX_UNITS_ARB = constant.Constant( 'GL_MAX_VERTEX_UNITS_ARB', 0x86A4 )
  33. glget.addGLGetConstant( GL_MAX_VERTEX_UNITS_ARB, (1,) )
  34. GL_ACTIVE_VERTEX_UNITS_ARB = constant.Constant( 'GL_ACTIVE_VERTEX_UNITS_ARB', 0x86A5 )
  35. glget.addGLGetConstant( GL_ACTIVE_VERTEX_UNITS_ARB, (1,) )
  36. GL_WEIGHT_SUM_UNITY_ARB = constant.Constant( 'GL_WEIGHT_SUM_UNITY_ARB', 0x86A6 )
  37. glget.addGLGetConstant( GL_WEIGHT_SUM_UNITY_ARB, (1,) )
  38. GL_VERTEX_BLEND_ARB = constant.Constant( 'GL_VERTEX_BLEND_ARB', 0x86A7 )
  39. glget.addGLGetConstant( GL_VERTEX_BLEND_ARB, (1,) )
  40. GL_CURRENT_WEIGHT_ARB = constant.Constant( 'GL_CURRENT_WEIGHT_ARB', 0x86A8 )
  41. glget.addGLGetConstant( GL_CURRENT_WEIGHT_ARB, (1,) )
  42. GL_WEIGHT_ARRAY_TYPE_ARB = constant.Constant( 'GL_WEIGHT_ARRAY_TYPE_ARB', 0x86A9 )
  43. glget.addGLGetConstant( GL_WEIGHT_ARRAY_TYPE_ARB, (1,) )
  44. GL_WEIGHT_ARRAY_STRIDE_ARB = constant.Constant( 'GL_WEIGHT_ARRAY_STRIDE_ARB', 0x86AA )
  45. glget.addGLGetConstant( GL_WEIGHT_ARRAY_STRIDE_ARB, (1,) )
  46. GL_WEIGHT_ARRAY_SIZE_ARB = constant.Constant( 'GL_WEIGHT_ARRAY_SIZE_ARB', 0x86AB )
  47. glget.addGLGetConstant( GL_WEIGHT_ARRAY_SIZE_ARB, (1,) )
  48. GL_WEIGHT_ARRAY_POINTER_ARB = constant.Constant( 'GL_WEIGHT_ARRAY_POINTER_ARB', 0x86AC )
  49. GL_WEIGHT_ARRAY_ARB = constant.Constant( 'GL_WEIGHT_ARRAY_ARB', 0x86AD )
  50. GL_MODELVIEW0_ARB = constant.Constant( 'GL_MODELVIEW0_ARB', 0x1700 )
  51. GL_MODELVIEW1_ARB = constant.Constant( 'GL_MODELVIEW1_ARB', 0x850A )
  52. GL_MODELVIEW2_ARB = constant.Constant( 'GL_MODELVIEW2_ARB', 0x8722 )
  53. GL_MODELVIEW3_ARB = constant.Constant( 'GL_MODELVIEW3_ARB', 0x8723 )
  54. GL_MODELVIEW4_ARB = constant.Constant( 'GL_MODELVIEW4_ARB', 0x8724 )
  55. GL_MODELVIEW5_ARB = constant.Constant( 'GL_MODELVIEW5_ARB', 0x8725 )
  56. GL_MODELVIEW6_ARB = constant.Constant( 'GL_MODELVIEW6_ARB', 0x8726 )
  57. GL_MODELVIEW7_ARB = constant.Constant( 'GL_MODELVIEW7_ARB', 0x8727 )
  58. GL_MODELVIEW8_ARB = constant.Constant( 'GL_MODELVIEW8_ARB', 0x8728 )
  59. GL_MODELVIEW9_ARB = constant.Constant( 'GL_MODELVIEW9_ARB', 0x8729 )
  60. GL_MODELVIEW10_ARB = constant.Constant( 'GL_MODELVIEW10_ARB', 0x872A )
  61. GL_MODELVIEW11_ARB = constant.Constant( 'GL_MODELVIEW11_ARB', 0x872B )
  62. GL_MODELVIEW12_ARB = constant.Constant( 'GL_MODELVIEW12_ARB', 0x872C )
  63. GL_MODELVIEW13_ARB = constant.Constant( 'GL_MODELVIEW13_ARB', 0x872D )
  64. GL_MODELVIEW14_ARB = constant.Constant( 'GL_MODELVIEW14_ARB', 0x872E )
  65. GL_MODELVIEW15_ARB = constant.Constant( 'GL_MODELVIEW15_ARB', 0x872F )
  66. GL_MODELVIEW16_ARB = constant.Constant( 'GL_MODELVIEW16_ARB', 0x8730 )
  67. GL_MODELVIEW17_ARB = constant.Constant( 'GL_MODELVIEW17_ARB', 0x8731 )
  68. GL_MODELVIEW18_ARB = constant.Constant( 'GL_MODELVIEW18_ARB', 0x8732 )
  69. GL_MODELVIEW19_ARB = constant.Constant( 'GL_MODELVIEW19_ARB', 0x8733 )
  70. GL_MODELVIEW20_ARB = constant.Constant( 'GL_MODELVIEW20_ARB', 0x8734 )
  71. GL_MODELVIEW21_ARB = constant.Constant( 'GL_MODELVIEW21_ARB', 0x8735 )
  72. GL_MODELVIEW22_ARB = constant.Constant( 'GL_MODELVIEW22_ARB', 0x8736 )
  73. GL_MODELVIEW23_ARB = constant.Constant( 'GL_MODELVIEW23_ARB', 0x8737 )
  74. GL_MODELVIEW24_ARB = constant.Constant( 'GL_MODELVIEW24_ARB', 0x8738 )
  75. GL_MODELVIEW25_ARB = constant.Constant( 'GL_MODELVIEW25_ARB', 0x8739 )
  76. GL_MODELVIEW26_ARB = constant.Constant( 'GL_MODELVIEW26_ARB', 0x873A )
  77. GL_MODELVIEW27_ARB = constant.Constant( 'GL_MODELVIEW27_ARB', 0x873B )
  78. GL_MODELVIEW28_ARB = constant.Constant( 'GL_MODELVIEW28_ARB', 0x873C )
  79. GL_MODELVIEW29_ARB = constant.Constant( 'GL_MODELVIEW29_ARB', 0x873D )
  80. GL_MODELVIEW30_ARB = constant.Constant( 'GL_MODELVIEW30_ARB', 0x873E )
  81. GL_MODELVIEW31_ARB = constant.Constant( 'GL_MODELVIEW31_ARB', 0x873F )
  82. glWeightbvARB = platform.createExtensionFunction( 
  83.     'glWeightbvARB', dll=platform.GL,
  84.     extension=EXTENSION_NAME,
  85.     resultType=None, 
  86.     argTypes=(constants.GLint, arrays.GLbyteArray,),
  87.     doc = 'glWeightbvARB( GLint(size), GLbyteArray(weights) ) -> None',
  88.     argNames = ('size', 'weights',),
  89. )
  90.  
  91. glWeightsvARB = platform.createExtensionFunction( 
  92.     'glWeightsvARB', dll=platform.GL,
  93.     extension=EXTENSION_NAME,
  94.     resultType=None, 
  95.     argTypes=(constants.GLint, arrays.GLshortArray,),
  96.     doc = 'glWeightsvARB( GLint(size), GLshortArray(weights) ) -> None',
  97.     argNames = ('size', 'weights',),
  98. )
  99.  
  100. glWeightivARB = platform.createExtensionFunction( 
  101.     'glWeightivARB', dll=platform.GL,
  102.     extension=EXTENSION_NAME,
  103.     resultType=None, 
  104.     argTypes=(constants.GLint, arrays.GLintArray,),
  105.     doc = 'glWeightivARB( GLint(size), GLintArray(weights) ) -> None',
  106.     argNames = ('size', 'weights',),
  107. )
  108.  
  109. glWeightfvARB = platform.createExtensionFunction( 
  110.     'glWeightfvARB', dll=platform.GL,
  111.     extension=EXTENSION_NAME,
  112.     resultType=None, 
  113.     argTypes=(constants.GLint, arrays.GLfloatArray,),
  114.     doc = 'glWeightfvARB( GLint(size), GLfloatArray(weights) ) -> None',
  115.     argNames = ('size', 'weights',),
  116. )
  117.  
  118. glWeightdvARB = platform.createExtensionFunction( 
  119.     'glWeightdvARB', dll=platform.GL,
  120.     extension=EXTENSION_NAME,
  121.     resultType=None, 
  122.     argTypes=(constants.GLint, arrays.GLdoubleArray,),
  123.     doc = 'glWeightdvARB( GLint(size), GLdoubleArray(weights) ) -> None',
  124.     argNames = ('size', 'weights',),
  125. )
  126.  
  127. glWeightubvARB = platform.createExtensionFunction( 
  128.     'glWeightubvARB', dll=platform.GL,
  129.     extension=EXTENSION_NAME,
  130.     resultType=None, 
  131.     argTypes=(constants.GLint, arrays.GLubyteArray,),
  132.     doc = 'glWeightubvARB( GLint(size), GLubyteArray(weights) ) -> None',
  133.     argNames = ('size', 'weights',),
  134. )
  135.  
  136. glWeightusvARB = platform.createExtensionFunction( 
  137.     'glWeightusvARB', dll=platform.GL,
  138.     extension=EXTENSION_NAME,
  139.     resultType=None, 
  140.     argTypes=(constants.GLint, arrays.GLushortArray,),
  141.     doc = 'glWeightusvARB( GLint(size), GLushortArray(weights) ) -> None',
  142.     argNames = ('size', 'weights',),
  143. )
  144.  
  145. glWeightuivARB = platform.createExtensionFunction( 
  146.     'glWeightuivARB', dll=platform.GL,
  147.     extension=EXTENSION_NAME,
  148.     resultType=None, 
  149.     argTypes=(constants.GLint, arrays.GLuintArray,),
  150.     doc = 'glWeightuivARB( GLint(size), GLuintArray(weights) ) -> None',
  151.     argNames = ('size', 'weights',),
  152. )
  153.  
  154. glWeightPointerARB = platform.createExtensionFunction( 
  155.     'glWeightPointerARB', dll=platform.GL,
  156.     extension=EXTENSION_NAME,
  157.     resultType=None, 
  158.     argTypes=(constants.GLint, constants.GLenum, constants.GLsizei, ctypes.c_void_p,),
  159.     doc = 'glWeightPointerARB( GLint(size), GLenum(type), GLsizei(stride), c_void_p(pointer) ) -> None',
  160.     argNames = ('size', 'type', 'stride', 'pointer',),
  161. )
  162.  
  163. glVertexBlendARB = platform.createExtensionFunction( 
  164.     'glVertexBlendARB', dll=platform.GL,
  165.     extension=EXTENSION_NAME,
  166.     resultType=None, 
  167.     argTypes=(constants.GLint,),
  168.     doc = 'glVertexBlendARB( GLint(count) ) -> None',
  169.     argNames = ('count',),
  170. )
  171.  
  172.  
  173. def glInitVertexBlendARB():
  174.     '''Return boolean indicating whether this extension is available'''
  175.     return extensions.hasGLExtension( EXTENSION_NAME )
  176.