X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fwglapi.py;h=e74955493ccfd180fcfd7a360249662425a461bc;hb=48a92b99752143a34a6b5f6b94bad183564cecab;hp=9c4b13b47a56c2c356f1d8cfa8ee6b2d17176dbb;hpb=77c10d8849459dbf7484fbc75eabe26cb401bb5a;p=apitrace diff --git a/specs/wglapi.py b/specs/wglapi.py index 9c4b13b..e749554 100644 --- a/specs/wglapi.py +++ b/specs/wglapi.py @@ -138,7 +138,7 @@ WGLSWAP = Struct("WGLSWAP", [ (UINT, "uiFlags"), ]) -WGLContextAttribs = AttribArray(WGLenum, [ +WGLContextAttribs = AttribArray(Const(WGLenum), [ ('WGL_CONTEXT_MAJOR_VERSION_ARB', Int), ('WGL_CONTEXT_MINOR_VERSION_ARB', Int), ('WGL_CONTEXT_LAYER_PLANE_ARB', Int), @@ -187,10 +187,10 @@ WGLPixelFormatAttribsList = [ ('WGL_SAMPLES_ARB', Int), ] -WGLPixelFormatAttribs = AttribArray(WGLenum, WGLPixelFormatAttribsList) -WGLPixelFormatFloatAttribs = AttribArray(FLOAT, WGLPixelFormatAttribsList) +WGLPixelFormatAttribs = AttribArray(Const(WGLenum), WGLPixelFormatAttribsList) +WGLPixelFormatFloatAttribs = AttribArray(Const(FLOAT), WGLPixelFormatAttribsList) -WGLCreatePbufferARBAttribs = AttribArray(WGLenum, [ +WGLCreatePbufferARBAttribs = AttribArray(Const(WGLenum), [ ('WGL_PBUFFER_LARGEST_ARB', Int) ]) @@ -203,7 +203,7 @@ CubeFaceEnum = FakeEnum(Int, [ 'WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB' ]) -WGLSetPbufferARBAttribs = AttribArray(WGLenum, [ +WGLSetPbufferARBAttribs = AttribArray(Const(WGLenum), [ ('WGL_MIPMAP_LEVEL_ARB', Int), ('WGL_CUBE_MAP_FACE_ARB', CubeFaceEnum) ])