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 / ARB / depth_texture.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.6 KB  |  37 lines

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