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 / SGIX / depth_texture.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.3 KB  |  32 lines

  1. '''OpenGL extension SGIX.depth_texture
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension defines a new depth texture format.  An important
  6.     application of depth texture images is shadow casting, but separating
  7.     this from the shadow extension allows for the potential use of depth
  8.     textures in other applications such as image-based rendering or
  9.     displacement mapping.  This extension does not define new depth-texture
  10.     environment functions, such as filtering or applying the depth values
  11.     computed from a texture, but leaves this to other extensions, such as
  12.     the shadow extension.
  13.  
  14. The official definition of this extension is available here:
  15.     http://oss.sgi.com/projects/ogl-sample/registry/SGIX/depth_texture.txt
  16.  
  17. Automatically generated by the get_gl_extensions script, do not edit!
  18. '''
  19. from OpenGL import platform, constants, constant, arrays
  20. from OpenGL import extensions
  21. from OpenGL.GL import glget
  22. import ctypes
  23. EXTENSION_NAME = 'GL_SGIX_depth_texture'
  24. GL_DEPTH_COMPONENT16_SGIX = constant.Constant( 'GL_DEPTH_COMPONENT16_SGIX', 0x81A5 )
  25. GL_DEPTH_COMPONENT24_SGIX = constant.Constant( 'GL_DEPTH_COMPONENT24_SGIX', 0x81A6 )
  26. GL_DEPTH_COMPONENT32_SGIX = constant.Constant( 'GL_DEPTH_COMPONENT32_SGIX', 0x81A7 )
  27.  
  28.  
  29. def glInitDepthTextureSGIX():
  30.     '''Return boolean indicating whether this extension is available'''
  31.     return extensions.hasGLExtension( EXTENSION_NAME )
  32.