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 / window_pos.py < prev   
Encoding:
Python Source  |  2008-12-07  |  5.7 KB  |  182 lines

  1. '''OpenGL extension ARB.window_pos
  2.  
  3. Overview (from the spec)
  4.     
  5.     In order to set the current raster position to a specific window
  6.     coordinate with the RasterPos command, the modelview matrix, projection
  7.     matrix and viewport must be set very carefully.  Furthermore, if the
  8.     desired window coordinate is outside of the window's bounds one must rely
  9.     on a subtle side-effect of the Bitmap command in order to avoid frustum
  10.     clipping.
  11.     
  12.     This extension provides a set of functions to directly set the current
  13.     raster position in window coordinates, bypassing the modelview matrix, the
  14.     projection matrix and the viewport-to-window mapping.  Furthermore, clip
  15.     testing is not performed, so that the current raster position is always
  16.     valid.
  17.     
  18.     This greatly simplifies the process of setting the current raster position
  19.     to a specific window coordinate prior to calling DrawPixels, CopyPixels or
  20.     Bitmap.  Many matrix operations can be avoided when mixing 2D and 3D
  21.     rendering.
  22.  
  23. The official definition of this extension is available here:
  24.     http://oss.sgi.com/projects/ogl-sample/registry/ARB/window_pos.txt
  25.  
  26. Automatically generated by the get_gl_extensions script, do not edit!
  27. '''
  28. from OpenGL import platform, constants, constant, arrays
  29. from OpenGL import extensions
  30. from OpenGL.GL import glget
  31. import ctypes
  32. EXTENSION_NAME = 'GL_ARB_window_pos'
  33.  
  34. glWindowPos2dARB = platform.createExtensionFunction( 
  35.     'glWindowPos2dARB', dll=platform.GL,
  36.     extension=EXTENSION_NAME,
  37.     resultType=None, 
  38.     argTypes=(constants.GLdouble, constants.GLdouble,),
  39.     doc = 'glWindowPos2dARB( GLdouble(x), GLdouble(y) ) -> None',
  40.     argNames = ('x', 'y',),
  41. )
  42.  
  43. glWindowPos2dvARB = platform.createExtensionFunction( 
  44.     'glWindowPos2dvARB', dll=platform.GL,
  45.     extension=EXTENSION_NAME,
  46.     resultType=None, 
  47.     argTypes=(arrays.GLdoubleArray,),
  48.     doc = 'glWindowPos2dvARB( GLdoubleArray(v) ) -> None',
  49.     argNames = ('v',),
  50. )
  51.  
  52. glWindowPos2fARB = platform.createExtensionFunction( 
  53.     'glWindowPos2fARB', dll=platform.GL,
  54.     extension=EXTENSION_NAME,
  55.     resultType=None, 
  56.     argTypes=(constants.GLfloat, constants.GLfloat,),
  57.     doc = 'glWindowPos2fARB( GLfloat(x), GLfloat(y) ) -> None',
  58.     argNames = ('x', 'y',),
  59. )
  60.  
  61. glWindowPos2fvARB = platform.createExtensionFunction( 
  62.     'glWindowPos2fvARB', dll=platform.GL,
  63.     extension=EXTENSION_NAME,
  64.     resultType=None, 
  65.     argTypes=(arrays.GLfloatArray,),
  66.     doc = 'glWindowPos2fvARB( GLfloatArray(v) ) -> None',
  67.     argNames = ('v',),
  68. )
  69.  
  70. glWindowPos2iARB = platform.createExtensionFunction( 
  71.     'glWindowPos2iARB', dll=platform.GL,
  72.     extension=EXTENSION_NAME,
  73.     resultType=None, 
  74.     argTypes=(constants.GLint, constants.GLint,),
  75.     doc = 'glWindowPos2iARB( GLint(x), GLint(y) ) -> None',
  76.     argNames = ('x', 'y',),
  77. )
  78.  
  79. glWindowPos2ivARB = platform.createExtensionFunction( 
  80.     'glWindowPos2ivARB', dll=platform.GL,
  81.     extension=EXTENSION_NAME,
  82.     resultType=None, 
  83.     argTypes=(arrays.GLintArray,),
  84.     doc = 'glWindowPos2ivARB( GLintArray(v) ) -> None',
  85.     argNames = ('v',),
  86. )
  87.  
  88. glWindowPos2sARB = platform.createExtensionFunction( 
  89.     'glWindowPos2sARB', dll=platform.GL,
  90.     extension=EXTENSION_NAME,
  91.     resultType=None, 
  92.     argTypes=(constants.GLshort, constants.GLshort,),
  93.     doc = 'glWindowPos2sARB( GLshort(x), GLshort(y) ) -> None',
  94.     argNames = ('x', 'y',),
  95. )
  96.  
  97. glWindowPos2svARB = platform.createExtensionFunction( 
  98.     'glWindowPos2svARB', dll=platform.GL,
  99.     extension=EXTENSION_NAME,
  100.     resultType=None, 
  101.     argTypes=(arrays.GLshortArray,),
  102.     doc = 'glWindowPos2svARB( GLshortArray(v) ) -> None',
  103.     argNames = ('v',),
  104. )
  105.  
  106. glWindowPos3dARB = platform.createExtensionFunction( 
  107.     'glWindowPos3dARB', dll=platform.GL,
  108.     extension=EXTENSION_NAME,
  109.     resultType=None, 
  110.     argTypes=(constants.GLdouble, constants.GLdouble, constants.GLdouble,),
  111.     doc = 'glWindowPos3dARB( GLdouble(x), GLdouble(y), GLdouble(z) ) -> None',
  112.     argNames = ('x', 'y', 'z',),
  113. )
  114.  
  115. glWindowPos3dvARB = platform.createExtensionFunction( 
  116.     'glWindowPos3dvARB', dll=platform.GL,
  117.     extension=EXTENSION_NAME,
  118.     resultType=None, 
  119.     argTypes=(arrays.GLdoubleArray,),
  120.     doc = 'glWindowPos3dvARB( GLdoubleArray(v) ) -> None',
  121.     argNames = ('v',),
  122. )
  123.  
  124. glWindowPos3fARB = platform.createExtensionFunction( 
  125.     'glWindowPos3fARB', dll=platform.GL,
  126.     extension=EXTENSION_NAME,
  127.     resultType=None, 
  128.     argTypes=(constants.GLfloat, constants.GLfloat, constants.GLfloat,),
  129.     doc = 'glWindowPos3fARB( GLfloat(x), GLfloat(y), GLfloat(z) ) -> None',
  130.     argNames = ('x', 'y', 'z',),
  131. )
  132.  
  133. glWindowPos3fvARB = platform.createExtensionFunction( 
  134.     'glWindowPos3fvARB', dll=platform.GL,
  135.     extension=EXTENSION_NAME,
  136.     resultType=None, 
  137.     argTypes=(arrays.GLfloatArray,),
  138.     doc = 'glWindowPos3fvARB( GLfloatArray(v) ) -> None',
  139.     argNames = ('v',),
  140. )
  141.  
  142. glWindowPos3iARB = platform.createExtensionFunction( 
  143.     'glWindowPos3iARB', dll=platform.GL,
  144.     extension=EXTENSION_NAME,
  145.     resultType=None, 
  146.     argTypes=(constants.GLint, constants.GLint, constants.GLint,),
  147.     doc = 'glWindowPos3iARB( GLint(x), GLint(y), GLint(z) ) -> None',
  148.     argNames = ('x', 'y', 'z',),
  149. )
  150.  
  151. glWindowPos3ivARB = platform.createExtensionFunction( 
  152.     'glWindowPos3ivARB', dll=platform.GL,
  153.     extension=EXTENSION_NAME,
  154.     resultType=None, 
  155.     argTypes=(arrays.GLintArray,),
  156.     doc = 'glWindowPos3ivARB( GLintArray(v) ) -> None',
  157.     argNames = ('v',),
  158. )
  159.  
  160. glWindowPos3sARB = platform.createExtensionFunction( 
  161.     'glWindowPos3sARB', dll=platform.GL,
  162.     extension=EXTENSION_NAME,
  163.     resultType=None, 
  164.     argTypes=(constants.GLshort, constants.GLshort, constants.GLshort,),
  165.     doc = 'glWindowPos3sARB( GLshort(x), GLshort(y), GLshort(z) ) -> None',
  166.     argNames = ('x', 'y', 'z',),
  167. )
  168.  
  169. glWindowPos3svARB = platform.createExtensionFunction( 
  170.     'glWindowPos3svARB', dll=platform.GL,
  171.     extension=EXTENSION_NAME,
  172.     resultType=None, 
  173.     argTypes=(arrays.GLshortArray,),
  174.     doc = 'glWindowPos3svARB( GLshortArray(v) ) -> None',
  175.     argNames = ('v',),
  176. )
  177.  
  178.  
  179. def glInitWindowPosARB():
  180.     '''Return boolean indicating whether this extension is available'''
  181.     return extensions.hasGLExtension( EXTENSION_NAME )
  182.