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

  1. '''OpenGL extension ARB.fragment_shader
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension adds functionality to define fragment shader objects. A
  6.     fragment shader object is a shader object (see the ARB_shader_objects
  7.     extension) that, when attached to a program object, can be compiled and
  8.     linked to produce an executable that runs on the fragment processor in
  9.     OpenGL. The fragment processor is a programmable unit that replaces the
  10.     OpenGL 1.4 fixed-function texturing, color sum and fog stages. This
  11.     extension also defines how such an executable interacts with the fixed
  12.     functionality fragment processing of OpenGL 1.4. The language used to
  13.     write fragment shaders is not discussed here. That language is defined
  14.     in the OpenGL Shading Language specification as the Fragment Shading
  15.     Language.
  16.  
  17. The official definition of this extension is available here:
  18.     http://oss.sgi.com/projects/ogl-sample/registry/ARB/fragment_shader.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_fragment_shader'
  27. GL_FRAGMENT_SHADER_ARB = constant.Constant( 'GL_FRAGMENT_SHADER_ARB', 0x8B30 )
  28. GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB = constant.Constant( 'GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB', 0x8B49 )
  29. glget.addGLGetConstant( GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB, (1,) )
  30. GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB = constant.Constant( 'GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB', 0x8B8B )
  31. glget.addGLGetConstant( GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB, (1,) )
  32.  
  33.  
  34. def glInitFragmentShaderARB():
  35.     '''Return boolean indicating whether this extension is available'''
  36.     return extensions.hasGLExtension( EXTENSION_NAME )
  37.