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 / bgra.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  909 b   |  27 lines

  1. '''OpenGL extension EXT.bgra
  2.  
  3. Overview (from the spec)
  4.     
  5.     EXT_bgra extends the list of host-memory color formats.
  6.     Specifically, it provides formats which match the memory layout of
  7.     Windows DIBs so that applications can use the same data in both
  8.     Windows API calls and OpenGL pixel API calls.
  9.  
  10. The official definition of this extension is available here:
  11.     http://oss.sgi.com/projects/ogl-sample/registry/EXT/bgra.txt
  12.  
  13. Automatically generated by the get_gl_extensions script, do not edit!
  14. '''
  15. from OpenGL import platform, constants, constant, arrays
  16. from OpenGL import extensions
  17. from OpenGL.GL import glget
  18. import ctypes
  19. EXTENSION_NAME = 'GL_EXT_bgra'
  20. GL_BGR_EXT = constant.Constant( 'GL_BGR_EXT', 0x80E0 )
  21. GL_BGRA_EXT = constant.Constant( 'GL_BGRA_EXT', 0x80E1 )
  22.  
  23.  
  24. def glInitBgraEXT():
  25.     '''Return boolean indicating whether this extension is available'''
  26.     return extensions.hasGLExtension( EXTENSION_NAME )
  27.