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 / geometry_shader4.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.6 KB  |  33 lines

  1. '''OpenGL extension EXT.geometry_shader4
  2.  
  3. The official definition of this extension is available here:
  4.     http://oss.sgi.com/projects/ogl-sample/registry/EXT/geometry_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_geometry_shader4'
  13. GL_GEOMETRY_SHADER_EXT = constant.Constant( 'GL_GEOMETRY_SHADER_EXT', 0x8DD9 )
  14. GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT = constant.Constant( 'GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT', 0x8DDD )
  15. GL_MAX_VERTEX_VARYING_COMPONENTS_EXT = constant.Constant( 'GL_MAX_VERTEX_VARYING_COMPONENTS_EXT', 0x8DDE )
  16. GL_MAX_VARYING_COMPONENTS_EXT = constant.Constant( 'GL_MAX_VARYING_COMPONENTS_EXT', 0x8B4B )
  17. GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT = constant.Constant( 'GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT', 0x8DDF )
  18. GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT = constant.Constant( 'GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT', 0x8DE0 )
  19. GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT = constant.Constant( 'GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT', 0x8DE1 )
  20. glProgramParameteriEXT = platform.createExtensionFunction( 
  21.     'glProgramParameteriEXT', dll=platform.GL,
  22.     extension=EXTENSION_NAME,
  23.     resultType=None, 
  24.     argTypes=(constants.GLuint, constants.GLenum, constants.GLint,),
  25.     doc = 'glProgramParameteriEXT( GLuint(program), GLenum(pname), GLint(value) ) -> None',
  26.     argNames = ('program', 'pname', 'value',),
  27. )
  28.  
  29.  
  30. def glInitGeometryShader4EXT():
  31.     '''Return boolean indicating whether this extension is available'''
  32.     return extensions.hasGLExtension( EXTENSION_NAME )
  33.