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 / SGIS / generate_mipmap.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.1 KB  |  28 lines

  1. '''OpenGL extension SGIS.generate_mipmap
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension defines a mechanism by which OpenGL can derive the
  6.     entire set of mipmap arrays when provided with only the base level
  7.     array.  Automatic mipmap generation is particularly useful when
  8.     texture images are being provided as a video stream.
  9.  
  10. The official definition of this extension is available here:
  11.     http://oss.sgi.com/projects/ogl-sample/registry/SGIS/generate_mipmap.txt
  12.  
  13. Automatically generated by the get_gl_extensions script, do not edit!
  14. '''
  15. from OpenGL import platform, constants, constant, arrays
  16. from OpenGL import extensions
  17. from OpenGL.GL import glget
  18. import ctypes
  19. EXTENSION_NAME = 'GL_SGIS_generate_mipmap'
  20. GL_GENERATE_MIPMAP_SGIS = constant.Constant( 'GL_GENERATE_MIPMAP_SGIS', 0x8191 )
  21. GL_GENERATE_MIPMAP_HINT_SGIS = constant.Constant( 'GL_GENERATE_MIPMAP_HINT_SGIS', 0x8192 )
  22. glget.addGLGetConstant( GL_GENERATE_MIPMAP_HINT_SGIS, (1,) )
  23.  
  24.  
  25. def glInitGenerateMipmapSGIS():
  26.     '''Return boolean indicating whether this extension is available'''
  27.     return extensions.hasGLExtension( EXTENSION_NAME )
  28.