]
HGLRC = Alias("HGLRC", HANDLE)
-PROC = Alias("PROC", LPVOID)
+PROC = Intrinsic("PROC", "%p")
PFD = Flags(DWORD, [
"PFD_DOUBLEBUFFER",
"PFD_SWAP_COPY",
"PFD_SWAP_LAYER_BUFFERS",
"PFD_GENERIC_ACCELERATED",
- "PFD_SUPPORT_DIRECTDRAW",
+ #"PFD_SUPPORT_DIRECTDRAW",
])
PIXELFORMATDESCRIPTOR = Struct("PIXELFORMATDESCRIPTOR", [
])
LPLAYERPLANEDESCRIPTOR = Pointer(LAYERPLANEDESCRIPTOR)
-WGLSWAP = Struct("WGLSWAP", [
- (HDC, "hdc"),
- (UINT, "uiFlags"),
-])
-
opengl32.functions += [
Function(BOOL, "wglCopyContext", [(HGLRC, "hglrcSrc"), (HGLRC, "hglrcDst"), (UINT, "mask")]),
Function(HGLRC, "wglCreateContext", [(HDC, "hdc")]),
Function(Int , "wglGetLayerPaletteEntries", [(HDC, "hdc"), (Int, "iLayerPlane"), (Int, "iStart"), (Int, "cEntries"), (OutPointer(COLORREF), "pcr")]),
Function(BOOL , "wglRealizeLayerPalette", [(HDC, "hdc"), (Int, "iLayerPlane"), (BOOL, "bRealize")]),
Function(BOOL , "wglSwapLayerBuffers", [(HDC, "hdc"), (UINT, "fuPlanes")]),
- Function(DWORD, "wglSwapMultipleBuffers", [(UINT, "n"), (Pointer(Const(WGLSWAP)), "ps")]),
]
+if False:
+ WGLSWAP = Struct("WGLSWAP", [
+ (HDC, "hdc"),
+ (UINT, "uiFlags"),
+ ])
+
+ opengl32.functions += [
+ Function(DWORD, "wglSwapMultipleBuffers", [(UINT, "n"), (Pointer(Const(WGLSWAP)), "ps")]),
+ ]
+
if __name__ == '__main__':
print
print '#define _GDI32_'
print
print '#include "log.hpp"'
print
+ print 'extern "C" {'
+ print
wrap()
+ print
+ print '}'