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 / EXT / abgr.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  836 b   |  25 lines

  1. '''OpenGL extension EXT.abgr
  2.  
  3. Overview (from the spec)
  4.     
  5.     EXT_abgr extends the list of host-memory color formats.  Specifically,
  6.     it provides a reverse-order alternative to image format RGBA.  The ABGR
  7.     component order matches the cpack Iris GL format on big-endian machines.
  8.  
  9. The official definition of this extension is available here:
  10.     http://oss.sgi.com/projects/ogl-sample/registry/EXT/abgr.txt
  11.  
  12. Automatically generated by the get_gl_extensions script, do not edit!
  13. '''
  14. from OpenGL import platform, constants, constant, arrays
  15. from OpenGL import extensions
  16. from OpenGL.GL import glget
  17. import ctypes
  18. EXTENSION_NAME = 'GL_EXT_abgr'
  19. GL_ABGR_EXT = constant.Constant( 'GL_ABGR_EXT', 0x8000 )
  20.  
  21.  
  22. def glInitAbgrEXT():
  23.     '''Return boolean indicating whether this extension is available'''
  24.     return extensions.hasGLExtension( EXTENSION_NAME )
  25.