From: José Fonseca Date: Mon, 30 Nov 2009 16:03:34 +0000 (+0000) Subject: Trace WGL_ARB_pbuffer calls. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=3eb4c94ac64252a9359c4def58f922dc0e45edf7;p=apitrace Trace WGL_ARB_pbuffer calls. --- diff --git a/opengl32.py b/opengl32.py index 1ab2a64..7b5e233 100644 --- a/opengl32.py +++ b/opengl32.py @@ -656,6 +656,8 @@ attribute = FakeEnum(Int, [ "WGL_TYPE_COLORINDEX_EXT", ]) +HPBUFFERARB = Alias("HPBUFFERARB", HANDLE) + wglgetprocaddress.functions += [ WglFunction(Void, "glAttachShader", [(GLuint, "program"), (GLuint, "shader")]), WglFunction(GLuint, "glCreateProgram", []), @@ -1026,6 +1028,12 @@ wglgetprocaddress.functions += [ WglFunction(Void, "glGetQueryObjectui64vEXT", [(GLuint, "id"), (GLenum, "pname"), (Pointer(GLuint64EXT), "params")]), # WGL_ARB_extensions_string WglFunction(Const(String), "wglGetExtensionsStringARB", [(HDC, "hdc")]), + # WGL_ARB_pbuffer + WglFunction(HPBUFFERARB, "wglCreatePbufferARB", [(HDC, "hDC"), (Int, "iPixelFormat"), (Int, "iWidth"), (Int, "iHeight"), (Pointer(Const(Int)), "piAttribList")]), + WglFunction(HDC, "wglGetPbufferDCARB", [(HPBUFFERARB, "hPbuffer")]), + WglFunction(Int, "wglReleasePbufferDCARB", [(HPBUFFERARB, "hPbuffer"), (HDC, "hDC")]), + WglFunction(BOOL, "wglDestroyPbufferARB", [(HPBUFFERARB, "hPbuffer")]), + WglFunction(BOOL, "wglQueryPbufferARB", [(HPBUFFERARB, "hPbuffer"), (Int, "iAttribute"), (Pointer(Int), "piValue")]), # WGL_ARB_pixel_format WglFunction(BOOL, "wglGetPixelFormatAttribivARB", [(HDC, "hdc"), (Int, "iPixelFormat"), (Int, "iLayerPlane"), (UINT, "nAttributes"), (Pointer(attribute), "piAttributes"), (OutPointer(Int), "piValues")]), WglFunction(BOOL, "wglGetPixelFormatAttribfvARB", [(HDC, "hdc"), (Int, "iPixelFormat"), (Int, "iLayerPlane"), (UINT, "nAttributes"), (Pointer(attribute), "piAttributes"), (OutPointer(FLOAT), "pfValues")]),