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 / _WGL.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  18.2 KB  |  410 lines

  1. # BEGIN GENERATED CONTENT (do not edit below this line)
  2.  
  3. # This content is generated by gengl.py.
  4. # Wrapper for /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h
  5. from OpenGL import platform, constant
  6. from ctypes import *
  7. c_void = None
  8.  
  9.  
  10. CONST = constant.Constant( 'CONST', 0 )
  11. GLenum = c_uint     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:19
  12. GLboolean = c_ubyte     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:20
  13. GLbitfield = c_uint     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:21
  14. GLbyte = c_char     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:22
  15. GLshort = c_short     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:23
  16. GLint = c_int     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:24
  17. GLsizei = c_int     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:25
  18. GLubyte = c_ubyte     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:26
  19. GLushort = c_ushort     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:27
  20. GLuint = c_uint     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:28
  21. GLfloat = c_float     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:29
  22. GLclampf = c_float     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:30
  23. GLdouble = c_double     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:31
  24. GLclampd = c_double     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:32
  25. GLvoid = None     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:33
  26. INT8 = c_char     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:35
  27. PINT8 = c_char_p     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:35
  28. INT16 = c_short     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:36
  29. PINT16 = POINTER(c_short)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:36
  30. INT32 = c_int     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:37
  31. PINT32 = POINTER(c_int)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:37
  32. UINT8 = c_ubyte     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:38
  33. PUINT8 = POINTER(c_ubyte)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:38
  34. UINT16 = c_ushort     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:39
  35. PUINT16 = POINTER(c_ushort)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:39
  36. UINT32 = c_uint     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:40
  37. PUINT32 = POINTER(c_uint)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:40
  38. LONG32 = c_int     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:41
  39. PLONG32 = POINTER(c_int)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:41
  40. ULONG32 = c_uint     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:42
  41. PULONG32 = POINTER(c_uint)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:42
  42. DWORD32 = c_uint     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:43
  43. PDWORD32 = POINTER(c_uint)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:43
  44. INT64 = c_longlong     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:44
  45. PINT64 = POINTER(c_longlong)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:44
  46. UINT64 = c_ulonglong     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:45
  47. PUINT64 = POINTER(c_ulonglong)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:45
  48. VOID = None     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:47
  49. LPVOID = POINTER(None)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:47
  50. LPCSTR = c_char_p     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:48
  51. CHAR = c_char     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:49
  52. BYTE = c_ubyte     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:50
  53. WORD = c_ushort     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:51
  54. USHORT = c_ushort     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:51
  55. UINT = c_uint     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:52
  56. INT = c_int     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:53
  57. INT_PTR = POINTER(c_int)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:53
  58. BOOL = c_long     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:54
  59. LONG = c_long     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:55
  60. DWORD = c_ulong     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:56
  61. FLOAT = c_float     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:57
  62. COLORREF = DWORD     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:58
  63. LPCOLORREF = POINTER(DWORD)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:58
  64. HANDLE = POINTER(None)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:60
  65. HGLRC = HANDLE     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:62
  66. HDC = HANDLE     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:63
  67. PROC = CFUNCTYPE(INT_PTR)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:65
  68. wglCopyContext = platform.createBaseFunction(
  69.     'wglCopyContext', dll=platform.GL, resultType=BOOL, 
  70.     argTypes=[HGLRC, HGLRC, UINT],
  71.     doc='wglCopyContext( HGLRC(None), HGLRC(None), UINT(None) ) -> BOOL', 
  72.     argNames=['None', 'None', 'None'],
  73. )
  74.  
  75. wglCreateContext = platform.createBaseFunction(
  76.     'wglCreateContext', dll=platform.GL, resultType=HGLRC, 
  77.     argTypes=[HDC],
  78.     doc='wglCreateContext( HDC(None) ) -> HGLRC', 
  79.     argNames=['None'],
  80. )
  81.  
  82. wglCreateLayerContext = platform.createBaseFunction(
  83.     'wglCreateLayerContext', dll=platform.GL, resultType=HGLRC, 
  84.     argTypes=[HDC, c_int],
  85.     doc='wglCreateLayerContext( HDC(None), c_int(None) ) -> HGLRC', 
  86.     argNames=['None', 'None'],
  87. )
  88.  
  89. wglDeleteContext = platform.createBaseFunction(
  90.     'wglDeleteContext', dll=platform.GL, resultType=BOOL, 
  91.     argTypes=[HGLRC],
  92.     doc='wglDeleteContext( HGLRC(None) ) -> BOOL', 
  93.     argNames=['None'],
  94. )
  95.  
  96. wglGetCurrentContext = platform.createBaseFunction(
  97.     'wglGetCurrentContext', dll=platform.GL, resultType=HGLRC, 
  98.     argTypes=[],
  99.     doc='wglGetCurrentContext(  ) -> HGLRC', 
  100.     argNames=[],
  101. )
  102.  
  103. wglGetCurrentDC = platform.createBaseFunction(
  104.     'wglGetCurrentDC', dll=platform.GL, resultType=HDC, 
  105.     argTypes=[],
  106.     doc='wglGetCurrentDC(  ) -> HDC', 
  107.     argNames=[],
  108. )
  109.  
  110. wglGetProcAddress = platform.createBaseFunction(
  111.     'wglGetProcAddress', dll=platform.GL, resultType=PROC, 
  112.     argTypes=[LPCSTR],
  113.     doc='wglGetProcAddress( LPCSTR(None) ) -> PROC', 
  114.     argNames=['None'],
  115. )
  116.  
  117. wglMakeCurrent = platform.createBaseFunction(
  118.     'wglMakeCurrent', dll=platform.GL, resultType=BOOL, 
  119.     argTypes=[HDC, HGLRC],
  120.     doc='wglMakeCurrent( HDC(None), HGLRC(None) ) -> BOOL', 
  121.     argNames=['None', 'None'],
  122. )
  123.  
  124. wglShareLists = platform.createBaseFunction(
  125.     'wglShareLists', dll=platform.GL, resultType=BOOL, 
  126.     argTypes=[HGLRC, HGLRC],
  127.     doc='wglShareLists( HGLRC(None), HGLRC(None) ) -> BOOL', 
  128.     argNames=['None', 'None'],
  129. )
  130.  
  131. wglUseFontBitmapsA = platform.createBaseFunction(
  132.     'wglUseFontBitmapsA', dll=platform.GL, resultType=BOOL, 
  133.     argTypes=[HDC, DWORD, DWORD, DWORD],
  134.     doc='wglUseFontBitmapsA( HDC(None), DWORD(None), DWORD(None), DWORD(None) ) -> BOOL', 
  135.     argNames=['None', 'None', 'None', 'None'],
  136. )
  137.  
  138. wglUseFontBitmapsW = platform.createBaseFunction(
  139.     'wglUseFontBitmapsW', dll=platform.GL, resultType=BOOL, 
  140.     argTypes=[HDC, DWORD, DWORD, DWORD],
  141.     doc='wglUseFontBitmapsW( HDC(None), DWORD(None), DWORD(None), DWORD(None) ) -> BOOL', 
  142.     argNames=['None', 'None', 'None', 'None'],
  143. )
  144.  
  145. SwapBuffers = platform.createBaseFunction(
  146.     'SwapBuffers', dll=platform.GL, resultType=BOOL, 
  147.     argTypes=[HDC],
  148.     doc='SwapBuffers( HDC(None) ) -> BOOL', 
  149.     argNames=['None'],
  150. )
  151.  
  152. class struct__POINTFLOAT(Structure):
  153.     __slots__ = [
  154.         'x',
  155.         'y',
  156.     ]
  157. struct__POINTFLOAT._fields_ = [
  158.     ('x', FLOAT),
  159.     ('y', FLOAT),
  160. ]
  161.  
  162. POINTFLOAT = struct__POINTFLOAT     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:83
  163. PPOINTFLOAT = POINTER(struct__POINTFLOAT)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:83
  164. class struct__GLYPHMETRICSFLOAT(Structure):
  165.     __slots__ = [
  166.         'gmfBlackBoxX',
  167.         'gmfBlackBoxY',
  168.         'gmfptGlyphOrigin',
  169.         'gmfCellIncX',
  170.         'gmfCellIncY',
  171.     ]
  172. struct__GLYPHMETRICSFLOAT._fields_ = [
  173.     ('gmfBlackBoxX', FLOAT),
  174.     ('gmfBlackBoxY', FLOAT),
  175.     ('gmfptGlyphOrigin', POINTFLOAT),
  176.     ('gmfCellIncX', FLOAT),
  177.     ('gmfCellIncY', FLOAT),
  178. ]
  179.  
  180. GLYPHMETRICSFLOAT = struct__GLYPHMETRICSFLOAT     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:91
  181. PGLYPHMETRICSFLOAT = POINTER(struct__GLYPHMETRICSFLOAT)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:91
  182. LPGLYPHMETRICSFLOAT = POINTER(struct__GLYPHMETRICSFLOAT)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:91
  183. WGL_FONT_LINES = constant.Constant( 'WGL_FONT_LINES', 0 )
  184. WGL_FONT_POLYGONS = constant.Constant( 'WGL_FONT_POLYGONS', 1 )
  185. wglUseFontOutlinesA = platform.createBaseFunction(
  186.     'wglUseFontOutlinesA', dll=platform.GL, resultType=BOOL, 
  187.     argTypes=[HDC, DWORD, DWORD, DWORD, FLOAT, FLOAT, c_int, LPGLYPHMETRICSFLOAT],
  188.     doc='wglUseFontOutlinesA( HDC(None), DWORD(None), DWORD(None), DWORD(None), FLOAT(None), FLOAT(None), c_int(None), LPGLYPHMETRICSFLOAT(None) ) -> BOOL', 
  189.     argNames=['None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'],
  190. )
  191.  
  192. wglUseFontOutlinesW = platform.createBaseFunction(
  193.     'wglUseFontOutlinesW', dll=platform.GL, resultType=BOOL, 
  194.     argTypes=[HDC, DWORD, DWORD, DWORD, FLOAT, FLOAT, c_int, LPGLYPHMETRICSFLOAT],
  195.     doc='wglUseFontOutlinesW( HDC(None), DWORD(None), DWORD(None), DWORD(None), FLOAT(None), FLOAT(None), c_int(None), LPGLYPHMETRICSFLOAT(None) ) -> BOOL', 
  196.     argNames=['None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'],
  197. )
  198.  
  199. class struct_tagLAYERPLANEDESCRIPTOR(Structure):
  200.     __slots__ = [
  201.         'nSize',
  202.         'nVersion',
  203.         'dwFlags',
  204.         'iPixelType',
  205.         'cColorBits',
  206.         'cRedBits',
  207.         'cRedShift',
  208.         'cGreenBits',
  209.         'cGreenShift',
  210.         'cBlueBits',
  211.         'cBlueShift',
  212.         'cAlphaBits',
  213.         'cAlphaShift',
  214.         'cAccumBits',
  215.         'cAccumRedBits',
  216.         'cAccumGreenBits',
  217.         'cAccumBlueBits',
  218.         'cAccumAlphaBits',
  219.         'cDepthBits',
  220.         'cStencilBits',
  221.         'cAuxBuffers',
  222.         'iLayerPlane',
  223.         'bReserved',
  224.         'crTransparent',
  225.     ]
  226. struct_tagLAYERPLANEDESCRIPTOR._fields_ = [
  227.     ('nSize', WORD),
  228.     ('nVersion', WORD),
  229.     ('dwFlags', DWORD),
  230.     ('iPixelType', BYTE),
  231.     ('cColorBits', BYTE),
  232.     ('cRedBits', BYTE),
  233.     ('cRedShift', BYTE),
  234.     ('cGreenBits', BYTE),
  235.     ('cGreenShift', BYTE),
  236.     ('cBlueBits', BYTE),
  237.     ('cBlueShift', BYTE),
  238.     ('cAlphaBits', BYTE),
  239.     ('cAlphaShift', BYTE),
  240.     ('cAccumBits', BYTE),
  241.     ('cAccumRedBits', BYTE),
  242.     ('cAccumGreenBits', BYTE),
  243.     ('cAccumBlueBits', BYTE),
  244.     ('cAccumAlphaBits', BYTE),
  245.     ('cDepthBits', BYTE),
  246.     ('cStencilBits', BYTE),
  247.     ('cAuxBuffers', BYTE),
  248.     ('iLayerPlane', BYTE),
  249.     ('bReserved', BYTE),
  250.     ('crTransparent', COLORREF),
  251. ]
  252.  
  253. LAYERPLANEDESCRIPTOR = struct_tagLAYERPLANEDESCRIPTOR     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:127
  254. PLAYERPLANEDESCRIPTOR = POINTER(struct_tagLAYERPLANEDESCRIPTOR)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:127
  255. LPLAYERPLANEDESCRIPTOR = POINTER(struct_tagLAYERPLANEDESCRIPTOR)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:127
  256. LPD_DOUBLEBUFFER = constant.Constant( 'LPD_DOUBLEBUFFER', 1 )
  257. LPD_STEREO = constant.Constant( 'LPD_STEREO', 2 )
  258. LPD_SUPPORT_GDI = constant.Constant( 'LPD_SUPPORT_GDI', 16 )
  259. LPD_SUPPORT_OPENGL = constant.Constant( 'LPD_SUPPORT_OPENGL', 32 )
  260. LPD_SHARE_DEPTH = constant.Constant( 'LPD_SHARE_DEPTH', 64 )
  261. LPD_SHARE_STENCIL = constant.Constant( 'LPD_SHARE_STENCIL', 128 )
  262. LPD_SHARE_ACCUM = constant.Constant( 'LPD_SHARE_ACCUM', 256 )
  263. LPD_SWAP_EXCHANGE = constant.Constant( 'LPD_SWAP_EXCHANGE', 512 )
  264. LPD_SWAP_COPY = constant.Constant( 'LPD_SWAP_COPY', 1024 )
  265. LPD_TRANSPARENT = constant.Constant( 'LPD_TRANSPARENT', 4096 )
  266. LPD_TYPE_RGBA = constant.Constant( 'LPD_TYPE_RGBA', 0 )
  267. LPD_TYPE_COLORINDEX = constant.Constant( 'LPD_TYPE_COLORINDEX', 1 )
  268. WGL_SWAP_MAIN_PLANE = constant.Constant( 'WGL_SWAP_MAIN_PLANE', 1 )
  269. WGL_SWAP_OVERLAY1 = constant.Constant( 'WGL_SWAP_OVERLAY1', 2 )
  270. WGL_SWAP_OVERLAY2 = constant.Constant( 'WGL_SWAP_OVERLAY2', 4 )
  271. WGL_SWAP_OVERLAY3 = constant.Constant( 'WGL_SWAP_OVERLAY3', 8 )
  272. WGL_SWAP_OVERLAY4 = constant.Constant( 'WGL_SWAP_OVERLAY4', 16 )
  273. WGL_SWAP_OVERLAY5 = constant.Constant( 'WGL_SWAP_OVERLAY5', 32 )
  274. WGL_SWAP_OVERLAY6 = constant.Constant( 'WGL_SWAP_OVERLAY6', 64 )
  275. WGL_SWAP_OVERLAY7 = constant.Constant( 'WGL_SWAP_OVERLAY7', 128 )
  276. WGL_SWAP_OVERLAY8 = constant.Constant( 'WGL_SWAP_OVERLAY8', 256 )
  277. WGL_SWAP_OVERLAY9 = constant.Constant( 'WGL_SWAP_OVERLAY9', 512 )
  278. WGL_SWAP_OVERLAY10 = constant.Constant( 'WGL_SWAP_OVERLAY10', 1024 )
  279. WGL_SWAP_OVERLAY11 = constant.Constant( 'WGL_SWAP_OVERLAY11', 2048 )
  280. WGL_SWAP_OVERLAY12 = constant.Constant( 'WGL_SWAP_OVERLAY12', 4096 )
  281. WGL_SWAP_OVERLAY13 = constant.Constant( 'WGL_SWAP_OVERLAY13', 8192 )
  282. WGL_SWAP_OVERLAY14 = constant.Constant( 'WGL_SWAP_OVERLAY14', 16384 )
  283. WGL_SWAP_OVERLAY15 = constant.Constant( 'WGL_SWAP_OVERLAY15', 32768 )
  284. WGL_SWAP_UNDERLAY1 = constant.Constant( 'WGL_SWAP_UNDERLAY1', 65536 )
  285. WGL_SWAP_UNDERLAY2 = constant.Constant( 'WGL_SWAP_UNDERLAY2', 131072 )
  286. WGL_SWAP_UNDERLAY3 = constant.Constant( 'WGL_SWAP_UNDERLAY3', 262144 )
  287. WGL_SWAP_UNDERLAY4 = constant.Constant( 'WGL_SWAP_UNDERLAY4', 524288 )
  288. WGL_SWAP_UNDERLAY5 = constant.Constant( 'WGL_SWAP_UNDERLAY5', 1048576 )
  289. WGL_SWAP_UNDERLAY6 = constant.Constant( 'WGL_SWAP_UNDERLAY6', 2097152 )
  290. WGL_SWAP_UNDERLAY7 = constant.Constant( 'WGL_SWAP_UNDERLAY7', 4194304 )
  291. WGL_SWAP_UNDERLAY8 = constant.Constant( 'WGL_SWAP_UNDERLAY8', 8388608 )
  292. WGL_SWAP_UNDERLAY9 = constant.Constant( 'WGL_SWAP_UNDERLAY9', 16777216 )
  293. WGL_SWAP_UNDERLAY10 = constant.Constant( 'WGL_SWAP_UNDERLAY10', 33554432 )
  294. WGL_SWAP_UNDERLAY11 = constant.Constant( 'WGL_SWAP_UNDERLAY11', 67108864 )
  295. WGL_SWAP_UNDERLAY12 = constant.Constant( 'WGL_SWAP_UNDERLAY12', 134217728 )
  296. WGL_SWAP_UNDERLAY13 = constant.Constant( 'WGL_SWAP_UNDERLAY13', 268435456 )
  297. WGL_SWAP_UNDERLAY14 = constant.Constant( 'WGL_SWAP_UNDERLAY14', 536870912 )
  298. WGL_SWAP_UNDERLAY15 = constant.Constant( 'WGL_SWAP_UNDERLAY15', 1073741824 )
  299. wglDescribeLayerPlane = platform.createBaseFunction(
  300.     'wglDescribeLayerPlane', dll=platform.GL, resultType=BOOL, 
  301.     argTypes=[HDC, c_int, c_int, UINT, LPLAYERPLANEDESCRIPTOR],
  302.     doc='wglDescribeLayerPlane( HDC(None), c_int(None), c_int(None), UINT(None), LPLAYERPLANEDESCRIPTOR(None) ) -> BOOL', 
  303.     argNames=['None', 'None', 'None', 'None', 'None'],
  304. )
  305.  
  306. wglSetLayerPaletteEntries = platform.createBaseFunction(
  307.     'wglSetLayerPaletteEntries', dll=platform.GL, resultType=c_int, 
  308.     argTypes=[HDC, c_int, c_int, c_int, POINTER(COLORREF)],
  309.     doc='wglSetLayerPaletteEntries( HDC(None), c_int(None), c_int(None), c_int(None), POINTER(COLORREF)() ) -> c_int', 
  310.     argNames=['None', 'None', 'None', 'None', ''],
  311. )
  312.  
  313. wglGetLayerPaletteEntries = platform.createBaseFunction(
  314.     'wglGetLayerPaletteEntries', dll=platform.GL, resultType=c_int, 
  315.     argTypes=[HDC, c_int, c_int, c_int, POINTER(COLORREF)],
  316.     doc='wglGetLayerPaletteEntries( HDC(None), c_int(None), c_int(None), c_int(None), POINTER(COLORREF)() ) -> c_int', 
  317.     argNames=['None', 'None', 'None', 'None', ''],
  318. )
  319.  
  320. wglRealizeLayerPalette = platform.createBaseFunction(
  321.     'wglRealizeLayerPalette', dll=platform.GL, resultType=BOOL, 
  322.     argTypes=[HDC, c_int, BOOL],
  323.     doc='wglRealizeLayerPalette( HDC(None), c_int(None), BOOL(None) ) -> BOOL', 
  324.     argNames=['None', 'None', 'None'],
  325. )
  326.  
  327. wglSwapLayerBuffers = platform.createBaseFunction(
  328.     'wglSwapLayerBuffers', dll=platform.GL, resultType=BOOL, 
  329.     argTypes=[HDC, UINT],
  330.     doc='wglSwapLayerBuffers( HDC(None), UINT(None) ) -> BOOL', 
  331.     argNames=['None', 'None'],
  332. )
  333.  
  334. class struct__WGLSWAP(Structure):
  335.     __slots__ = [
  336.         'hdc',
  337.         'uiFlags',
  338.     ]
  339. struct__WGLSWAP._fields_ = [
  340.     ('hdc', HDC),
  341.     ('uiFlags', UINT),
  342. ]
  343.  
  344. WGLSWAP = struct__WGLSWAP     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:190
  345. PWGLSWAP = POINTER(struct__WGLSWAP)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:190
  346. LPWGLSWAP = POINTER(struct__WGLSWAP)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:190
  347. WGL_SWAPMULTIPLE_MAX = constant.Constant( 'WGL_SWAPMULTIPLE_MAX', 16 )
  348. wglSwapMultipleBuffers = platform.createBaseFunction(
  349.     'wglSwapMultipleBuffers', dll=platform.GL, resultType=DWORD, 
  350.     argTypes=[UINT, POINTER(WGLSWAP)],
  351.     doc='wglSwapMultipleBuffers( UINT(None), POINTER(WGLSWAP)() ) -> DWORD', 
  352.     argNames=['None', ''],
  353. )
  354.  
  355. class struct_tagRECT(Structure):
  356.     __slots__ = [
  357.         'left',
  358.         'top',
  359.         'right',
  360.         'bottom',
  361.     ]
  362. struct_tagRECT._fields_ = [
  363.     ('left', LONG),
  364.     ('top', LONG),
  365.     ('right', LONG),
  366.     ('bottom', LONG),
  367. ]
  368.  
  369. RECT = struct_tagRECT     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:202
  370. PRECT = POINTER(struct_tagRECT)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:202
  371. NPRECT = POINTER(struct_tagRECT)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:202
  372. LPRECT = POINTER(struct_tagRECT)     # /home/mcfletch/pylive/OpenGL-ctypes/src/wgl.h:202
  373.  
  374. __all__ = ['CONST', 'GLenum', 'GLboolean', 'GLbitfield', 'GLbyte', 'GLshort',
  375. 'GLint', 'GLsizei', 'GLubyte', 'GLushort', 'GLuint', 'GLfloat', 'GLclampf',
  376. 'GLdouble', 'GLclampd', 'GLvoid', 'INT8', 'PINT8', 'INT16', 'PINT16', 'INT32',
  377. 'PINT32', 'UINT8', 'PUINT8', 'UINT16', 'PUINT16', 'UINT32', 'PUINT32',
  378. 'LONG32', 'PLONG32', 'ULONG32', 'PULONG32', 'DWORD32', 'PDWORD32', 'INT64',
  379. 'PINT64', 'UINT64', 'PUINT64', 'VOID', 'LPVOID', 'LPCSTR', 'CHAR', 'BYTE',
  380. 'WORD', 'USHORT', 'UINT', 'INT', 'INT_PTR', 'BOOL', 'LONG', 'DWORD', 'FLOAT',
  381. 'COLORREF', 'LPCOLORREF', 'HANDLE', 'HGLRC', 'HDC', 'PROC', 'wglCopyContext',
  382. 'wglCreateContext', 'wglCreateLayerContext', 'wglDeleteContext',
  383. 'wglGetCurrentContext', 'wglGetCurrentDC', 'wglGetProcAddress',
  384. 'wglMakeCurrent', 'wglShareLists', 'wglUseFontBitmapsA', 'wglUseFontBitmapsW',
  385. 'SwapBuffers', 'POINTFLOAT', 'PPOINTFLOAT', 'GLYPHMETRICSFLOAT',
  386. 'PGLYPHMETRICSFLOAT', 'LPGLYPHMETRICSFLOAT', 'WGL_FONT_LINES',
  387. 'WGL_FONT_POLYGONS', 'wglUseFontOutlinesA', 'wglUseFontOutlinesW',
  388. 'LAYERPLANEDESCRIPTOR', 'PLAYERPLANEDESCRIPTOR', 'LPLAYERPLANEDESCRIPTOR',
  389. 'LPD_DOUBLEBUFFER', 'LPD_STEREO', 'LPD_SUPPORT_GDI', 'LPD_SUPPORT_OPENGL',
  390. 'LPD_SHARE_DEPTH', 'LPD_SHARE_STENCIL', 'LPD_SHARE_ACCUM',
  391. 'LPD_SWAP_EXCHANGE', 'LPD_SWAP_COPY', 'LPD_TRANSPARENT', 'LPD_TYPE_RGBA',
  392. 'LPD_TYPE_COLORINDEX', 'WGL_SWAP_MAIN_PLANE', 'WGL_SWAP_OVERLAY1',
  393. 'WGL_SWAP_OVERLAY2', 'WGL_SWAP_OVERLAY3', 'WGL_SWAP_OVERLAY4',
  394. 'WGL_SWAP_OVERLAY5', 'WGL_SWAP_OVERLAY6', 'WGL_SWAP_OVERLAY7',
  395. 'WGL_SWAP_OVERLAY8', 'WGL_SWAP_OVERLAY9', 'WGL_SWAP_OVERLAY10',
  396. 'WGL_SWAP_OVERLAY11', 'WGL_SWAP_OVERLAY12', 'WGL_SWAP_OVERLAY13',
  397. 'WGL_SWAP_OVERLAY14', 'WGL_SWAP_OVERLAY15', 'WGL_SWAP_UNDERLAY1',
  398. 'WGL_SWAP_UNDERLAY2', 'WGL_SWAP_UNDERLAY3', 'WGL_SWAP_UNDERLAY4',
  399. 'WGL_SWAP_UNDERLAY5', 'WGL_SWAP_UNDERLAY6', 'WGL_SWAP_UNDERLAY7',
  400. 'WGL_SWAP_UNDERLAY8', 'WGL_SWAP_UNDERLAY9', 'WGL_SWAP_UNDERLAY10',
  401. 'WGL_SWAP_UNDERLAY11', 'WGL_SWAP_UNDERLAY12', 'WGL_SWAP_UNDERLAY13',
  402. 'WGL_SWAP_UNDERLAY14', 'WGL_SWAP_UNDERLAY15', 'wglDescribeLayerPlane',
  403. 'wglSetLayerPaletteEntries', 'wglGetLayerPaletteEntries',
  404. 'wglRealizeLayerPalette', 'wglSwapLayerBuffers', 'WGLSWAP', 'PWGLSWAP',
  405. 'LPWGLSWAP', 'WGL_SWAPMULTIPLE_MAX', 'wglSwapMultipleBuffers', 'RECT',
  406. 'PRECT', 'NPRECT', 'LPRECT']
  407. # END GENERATED CONTENT (do not edit above this line)
  408.  
  409.  
  410.