##########################################################################/
+"""WGL API description"""
+
+
from glapi import *
-from windows import *
+from winapi import *
wglapi = API("WGL")
LPLAYERPLANEDESCRIPTOR = Pointer(LAYERPLANEDESCRIPTOR)
WGLSWAP = Struct("WGLSWAP", [
- (HDC, "hdc"),
+ (HDC, "hdc"),
(UINT, "uiFlags"),
])
StdFunction(BOOL, "wglSwapIntervalEXT", [(Int, "interval")]),
StdFunction(Int, "wglGetSwapIntervalEXT", [], sideeffects=False),
+ # WGL_NV_vertex_array_range
+ StdFunction(OpaquePointer(Void), "wglAllocateMemoryNV", [(GLsizei, "size"), (GLfloat, "readfreq"), (GLfloat, "writefreq"), (GLfloat, "priority")]),
+ StdFunction(Void, "wglFreeMemoryNV", [(OpaquePointer(Void), "pointer")]),
+
+ # GL_WIN_swap_hint
+ StdFunction(Void, "glAddSwapHintRectWIN", [(GLint, "x"), (GLint, "y"), (GLsizei, "width"), (GLsizei, "height")]),
+
# must be last
StdFunction(PROC, "wglGetProcAddress", [(LPCSTR, "lpszProc")]),
])