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 / NV / texture_shader2.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.3 KB  |  41 lines

  1. '''OpenGL extension NV.texture_shader2
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension extends the NV_texture_shader functionality to
  6.     support texture shader operations for 3D textures.
  7.     
  8.     See the NV_texture_shader extension for information about the
  9.     texture shader operational model.
  10.     
  11.     The two new texture shader operations are:
  12.     
  13.     <conventional textures>
  14.     
  15.     22.  TEXTURE_3D - Accesses a 3D texture via (s/q,t/q,r/q).
  16.     
  17.     <dot product textures>
  18.     
  19.     23.  DOT_PRODUCT_TEXTURE_3D_NV - When preceded by two DOT_PRODUCT_NV
  20.          programs in the previous two texture shader stages, computes a
  21.          third similar dot product and composes the three dot products
  22.          into (s,t,r) texture coordinate set to access a 3D non-projective
  23.          texture.
  24.  
  25. The official definition of this extension is available here:
  26.     http://oss.sgi.com/projects/ogl-sample/registry/NV/texture_shader2.txt
  27.  
  28. Automatically generated by the get_gl_extensions script, do not edit!
  29. '''
  30. from OpenGL import platform, constants, constant, arrays
  31. from OpenGL import extensions
  32. from OpenGL.GL import glget
  33. import ctypes
  34. EXTENSION_NAME = 'GL_NV_texture_shader2'
  35. GL_DOT_PRODUCT_TEXTURE_3D_NV = constant.Constant( 'GL_DOT_PRODUCT_TEXTURE_3D_NV', 0x86EF )
  36.  
  37.  
  38. def glInitTextureShader2NV():
  39.     '''Return boolean indicating whether this extension is available'''
  40.     return extensions.hasGLExtension( EXTENSION_NAME )
  41.