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 / ATI / element_array.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  2.6 KB  |  64 lines

  1. '''OpenGL extension ATI.element_array
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension provides a mechanism for an application to create
  6.     an array of index data for use in specifying geometric primitives.
  7.     
  8.     This extension is most useful when used in conjunction with the
  9.     ATI_vertex_array_object extension. ATI_vertex_array_object
  10.     provides an interface for storing vertex array data in persistent,
  11.     hardware-addressable memory. In cases where large amounts of
  12.     vertex data are in use, the index data used to construct
  13.     primitives (typically as passed to the GL through DrawElements)
  14.     can impose a significant bandwidth burden. ATI_element_array
  15.     allows the application to specify independent arrays of elements,
  16.     which can then be cached using ATI_vertex_array_object.
  17.     
  18.  
  19. The official definition of this extension is available here:
  20.     http://oss.sgi.com/projects/ogl-sample/registry/ATI/element_array.txt
  21.  
  22. Automatically generated by the get_gl_extensions script, do not edit!
  23. '''
  24. from OpenGL import platform, constants, constant, arrays
  25. from OpenGL import extensions
  26. from OpenGL.GL import glget
  27. import ctypes
  28. EXTENSION_NAME = 'GL_ATI_element_array'
  29. GL_ELEMENT_ARRAY_ATI = constant.Constant( 'GL_ELEMENT_ARRAY_ATI', 0x8768 )
  30. GL_ELEMENT_ARRAY_TYPE_ATI = constant.Constant( 'GL_ELEMENT_ARRAY_TYPE_ATI', 0x8769 )
  31. glget.addGLGetConstant( GL_ELEMENT_ARRAY_TYPE_ATI, (1,) )
  32. GL_ELEMENT_ARRAY_POINTER_ATI = constant.Constant( 'GL_ELEMENT_ARRAY_POINTER_ATI', 0x876A )
  33. glElementPointerATI = platform.createExtensionFunction( 
  34.     'glElementPointerATI', dll=platform.GL,
  35.     extension=EXTENSION_NAME,
  36.     resultType=None, 
  37.     argTypes=(constants.GLenum, ctypes.c_void_p,),
  38.     doc = 'glElementPointerATI( GLenum(type), c_void_p(pointer) ) -> None',
  39.     argNames = ('type', 'pointer',),
  40. )
  41.  
  42. glDrawElementArrayATI = platform.createExtensionFunction( 
  43.     'glDrawElementArrayATI', dll=platform.GL,
  44.     extension=EXTENSION_NAME,
  45.     resultType=None, 
  46.     argTypes=(constants.GLenum, constants.GLsizei,),
  47.     doc = 'glDrawElementArrayATI( GLenum(mode), GLsizei(count) ) -> None',
  48.     argNames = ('mode', 'count',),
  49. )
  50.  
  51. glDrawRangeElementArrayATI = platform.createExtensionFunction( 
  52.     'glDrawRangeElementArrayATI', dll=platform.GL,
  53.     extension=EXTENSION_NAME,
  54.     resultType=None, 
  55.     argTypes=(constants.GLenum, constants.GLuint, constants.GLuint, constants.GLsizei,),
  56.     doc = 'glDrawRangeElementArrayATI( GLenum(mode), GLuint(start), GLuint(end), GLsizei(count) ) -> None',
  57.     argNames = ('mode', 'start', 'end', 'count',),
  58. )
  59.  
  60.  
  61. def glInitElementArrayATI():
  62.     '''Return boolean indicating whether this extension is available'''
  63.     return extensions.hasGLExtension( EXTENSION_NAME )
  64.