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 / INTEL / parallel_arrays.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  2.7 KB  |  63 lines

  1. '''OpenGL extension INTEL.parallel_arrays
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension adds the ability to format vertex arrays in a way that's 
  6.  
  7. The official definition of this extension is available here:
  8.     http://oss.sgi.com/projects/ogl-sample/registry/INTEL/parallel_arrays.txt
  9.  
  10. Automatically generated by the get_gl_extensions script, do not edit!
  11. '''
  12. from OpenGL import platform, constants, constant, arrays
  13. from OpenGL import extensions
  14. from OpenGL.GL import glget
  15. import ctypes
  16. EXTENSION_NAME = 'GL_INTEL_parallel_arrays'
  17. GL_PARALLEL_ARRAYS_INTEL = constant.Constant( 'GL_PARALLEL_ARRAYS_INTEL', 0x83F4 )
  18. glget.addGLGetConstant( GL_PARALLEL_ARRAYS_INTEL, (1,) )
  19. GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL = constant.Constant( 'GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL', 0x83F5 )
  20. GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL = constant.Constant( 'GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL', 0x83F6 )
  21. GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL = constant.Constant( 'GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL', 0x83F7 )
  22. GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL = constant.Constant( 'GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL', 0x83F8 )
  23. glVertexPointervINTEL = platform.createExtensionFunction( 
  24.     'glVertexPointervINTEL', dll=platform.GL,
  25.     extension=EXTENSION_NAME,
  26.     resultType=None, 
  27.     argTypes=(constants.GLint, constants.GLenum, ctypes.POINTER(ctypes.c_void_p),),
  28.     doc = 'glVertexPointervINTEL( GLint(size), GLenum(type), POINTER(ctypes.c_void_p)(pointer) ) -> None',
  29.     argNames = ('size', 'type', 'pointer',),
  30. )
  31.  
  32. glNormalPointervINTEL = platform.createExtensionFunction( 
  33.     'glNormalPointervINTEL', dll=platform.GL,
  34.     extension=EXTENSION_NAME,
  35.     resultType=None, 
  36.     argTypes=(constants.GLenum, ctypes.POINTER(ctypes.c_void_p),),
  37.     doc = 'glNormalPointervINTEL( GLenum(type), POINTER(ctypes.c_void_p)(pointer) ) -> None',
  38.     argNames = ('type', 'pointer',),
  39. )
  40.  
  41. glColorPointervINTEL = platform.createExtensionFunction( 
  42.     'glColorPointervINTEL', dll=platform.GL,
  43.     extension=EXTENSION_NAME,
  44.     resultType=None, 
  45.     argTypes=(constants.GLint, constants.GLenum, ctypes.POINTER(ctypes.c_void_p),),
  46.     doc = 'glColorPointervINTEL( GLint(size), GLenum(type), POINTER(ctypes.c_void_p)(pointer) ) -> None',
  47.     argNames = ('size', 'type', 'pointer',),
  48. )
  49.  
  50. glTexCoordPointervINTEL = platform.createExtensionFunction( 
  51.     'glTexCoordPointervINTEL', dll=platform.GL,
  52.     extension=EXTENSION_NAME,
  53.     resultType=None, 
  54.     argTypes=(constants.GLint, constants.GLenum, ctypes.POINTER(ctypes.c_void_p),),
  55.     doc = 'glTexCoordPointervINTEL( GLint(size), GLenum(type), POINTER(ctypes.c_void_p)(pointer) ) -> None',
  56.     argNames = ('size', 'type', 'pointer',),
  57. )
  58.  
  59.  
  60. def glInitParallelArraysINTEL():
  61.     '''Return boolean indicating whether this extension is available'''
  62.     return extensions.hasGLExtension( EXTENSION_NAME )
  63.