X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fcglapi.py;h=6cea02887f3f3945bf9b99099a6a2a2b09d21d86;hb=9243aa6a122ded81ea0f07bcc1b0c4e0ef57c398;hp=c5930f6e55500538f49ad37a68de58a620b68332;hpb=632a78d5c90941c896fa3c7156131f27c5a58b24;p=apitrace diff --git a/specs/cglapi.py b/specs/cglapi.py index c5930f6..6cea028 100644 --- a/specs/cglapi.py +++ b/specs/cglapi.py @@ -180,7 +180,7 @@ CGLError = Enum("CGLError", [ CGLContextObj = Opaque("CGLContextObj") -cglapi = API("CGL") +cglapi = Module("CGL") cglapi.addFunctions([ # CGLCurrent.h, libGL.dylib @@ -233,7 +233,7 @@ cglapi.addFunctions([ Function(CGLError, "CGLLockContext", [(CGLContextObj, "ctx")]), Function(CGLError, "CGLUnlockContext", [(CGLContextObj, "ctx")]), Function(Void, "CGLGetVersion", [Out(Pointer(GLint), "majorvers"), Out(Pointer(GLint), "minorvers")]), - Function(Const(CString), "CGLErrorString", [(CGLError, "error")]), + Function(ConstCString, "CGLErrorString", [(CGLError, "error")]), # CGLIOSurface.h, OpenGL framework Function(CGLError, "CGLTexImageIOSurface2D", [(CGLContextObj, "ctx"), (GLenum, "target"), (GLenum, "internal_format"), (GLsizei, "width"), (GLsizei, "height"), (GLenum, "format"), (GLenum, "type"), (IOSurfaceRef, "ioSurface"), (GLuint, "plane")]),