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 / SUN / mesh_array.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.4 KB  |  38 lines

  1. '''OpenGL extension SUN.mesh_array
  2.  
  3. Overview (from the spec)
  4.     
  5.     
  6.     This extension defines a new mesh primitive.
  7.     The primitive can only be used with vertex arrays and cannot be used in
  8.     immediate mode. The application must arrange the vertices in row major format.
  9.     For example if a quad mesh is 4 vertices wide the, vertices in the first
  10.     row are the first 4 vertices and vertices in the second row are vertices 5
  11.     through 8. 
  12.  
  13. The official definition of this extension is available here:
  14.     http://oss.sgi.com/projects/ogl-sample/registry/SUN/mesh_array.txt
  15.  
  16. Automatically generated by the get_gl_extensions script, do not edit!
  17. '''
  18. from OpenGL import platform, constants, constant, arrays
  19. from OpenGL import extensions
  20. from OpenGL.GL import glget
  21. import ctypes
  22. EXTENSION_NAME = 'GL_SUN_mesh_array'
  23. GL_QUAD_MESH_SUN = constant.Constant( 'GL_QUAD_MESH_SUN', 0x8614 )
  24. GL_TRIANGLE_MESH_SUN = constant.Constant( 'GL_TRIANGLE_MESH_SUN', 0x8615 )
  25. glDrawMeshArraysSUN = platform.createExtensionFunction( 
  26.     'glDrawMeshArraysSUN', dll=platform.GL,
  27.     extension=EXTENSION_NAME,
  28.     resultType=None, 
  29.     argTypes=(constants.GLenum, constants.GLint, constants.GLsizei, constants.GLsizei,),
  30.     doc = 'glDrawMeshArraysSUN( GLenum(mode), GLint(first), GLsizei(count), GLsizei(width) ) -> None',
  31.     argNames = ('mode', 'first', 'count', 'width',),
  32. )
  33.  
  34.  
  35. def glInitMeshArraySUN():
  36.     '''Return boolean indicating whether this extension is available'''
  37.     return extensions.hasGLExtension( EXTENSION_NAME )
  38.