From: José Fonseca Date: Wed, 24 Nov 2010 00:25:59 +0000 (+0000) Subject: More handles. X-Git-Tag: 2.0_alpha^2~1330 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14639c7e93c6c22258f7d138fc62fed97ec046cd;p=tools%2Fapitrace.git More handles. --- diff --git a/glapi.py b/glapi.py index dd7368c..af00465 100644 --- a/glapi.py +++ b/glapi.py @@ -2519,6 +2519,8 @@ GLbitfield_client_attrib = Flags(GLbitfield, [ ]) texture = Handle("texture", GLuint) +framebuffer = Handle("framebuffer", GLuint) +renderbuffer = Handle("renderbuffer", GLuint) def GlFunction(*args, **kwargs): @@ -3292,22 +3294,22 @@ def extended_functions(Function): F(Void, "glProgramNamedParameter4fvNV", [(GLuint, "id"), (GLsizei, "len"), (OpaquePointer(Const(GLubyte)), "name"), (Array(Const(GLfloat), "4"), "v")]), F(Void, "glDepthBoundsEXT", [(GLclampd, "zmin"), (GLclampd, "zmax")]), F(Void, "glBlendEquationSeparateEXT", [(GLenum, "modeRGB"), (GLenum, "modeA")]), - F(Void, "glBindFramebufferEXT", [(GLenum, "target"), (GLuint, "framebuffer")]), - F(Void, "glBindRenderbufferEXT", [(GLenum, "target"), (GLuint, "renderbuffer")]), + F(Void, "glBindFramebufferEXT", [(GLenum, "target"), (framebuffer, "framebuffer")]), + F(Void, "glBindRenderbufferEXT", [(GLenum, "target"), (renderbuffer, "renderbuffer")]), F(GLenum, "glCheckFramebufferStatusEXT", [(GLenum, "target")]), - F(Void, "glDeleteFramebuffersEXT", [(GLsizei, "n"), (Array(Const(GLuint), "n"), "framebuffers")]), - F(Void, "glDeleteRenderbuffersEXT", [(GLsizei, "n"), (Array(Const(GLuint), "n"), "renderbuffers")]), + F(Void, "glDeleteFramebuffersEXT", [(GLsizei, "n"), (Array(Const(framebuffer), "n"), "framebuffers")]), + F(Void, "glDeleteRenderbuffersEXT", [(GLsizei, "n"), (Array(Const(renderbuffer), "n"), "renderbuffers")]), F(Void, "glFramebufferRenderbufferEXT", [(GLenum, "target"), (GLenum, "attachment"), (GLenum, "renderbuffertarget"), (GLuint, "renderbuffer")]), F(Void, "glFramebufferTexture1DEXT", [(GLenum, "target"), (GLenum, "attachment"), (GLenum, "textarget"), (texture, "texture"), (GLint, "level")]), F(Void, "glFramebufferTexture2DEXT", [(GLenum, "target"), (GLenum, "attachment"), (GLenum, "textarget"), (texture, "texture"), (GLint, "level")]), F(Void, "glFramebufferTexture3DEXT", [(GLenum, "target"), (GLenum, "attachment"), (GLenum, "textarget"), (texture, "texture"), (GLint, "level"), (GLint, "zoffset")]), - F(Void, "glGenFramebuffersEXT", [(GLsizei, "n"), Out(Array(GLuint, "n"), "framebuffers")]), - F(Void, "glGenRenderbuffersEXT", [(GLsizei, "n"), Out(Array(GLuint, "n"), "renderbuffers")]), + F(Void, "glGenFramebuffersEXT", [(GLsizei, "n"), Out(Array(framebuffer, "n"), "framebuffers")]), + F(Void, "glGenRenderbuffersEXT", [(GLsizei, "n"), Out(Array(renderbuffer, "n"), "renderbuffers")]), F(Void, "glGenerateMipmapEXT", [(GLenum, "target")]), F(Void, "glGetFramebufferAttachmentParameterivEXT", [(GLenum, "target"), (GLenum, "attachment"), (GLenum, "pname"), (OpaquePointer(GLint), "params")], sideeffects=False), F(Void, "glGetRenderbufferParameterivEXT", [(GLenum, "target"), (GLenum, "pname"), (OpaquePointer(GLint), "params")], sideeffects=False), - F(GLboolean, "glIsFramebufferEXT", [(GLuint, "framebuffer")]), - F(GLboolean, "glIsRenderbufferEXT", [(GLuint, "renderbuffer")]), + F(GLboolean, "glIsFramebufferEXT", [(framebuffer, "framebuffer")]), + F(GLboolean, "glIsRenderbufferEXT", [(renderbuffer, "renderbuffer")]), F(Void, "glRenderbufferStorageEXT", [(GLenum, "target"), (GLenum, "internalformat"), (GLsizei, "width"), (GLsizei, "height")]), F(Void, "glBlitFramebufferEXT", [(GLint, "srcX0"), (GLint, "srcY0"), (GLint, "srcX1"), (GLint, "srcY1"), (GLint, "dstX0"), (GLint, "dstY0"), (GLint, "dstX1"), (GLint, "dstY1"), (GLbitfield_attrib, "mask"), (GLenum, "filter")]), F(Void, "glFramebufferTextureLayerEXT", [(GLenum, "target"), (GLenum, "attachment"), (texture, "texture"), (GLint, "level"), (GLint, "layer")]), diff --git a/glretrace.py b/glretrace.py index 705f953..8a0a68a 100644 --- a/glretrace.py +++ b/glretrace.py @@ -195,7 +195,8 @@ if __name__ == '__main__': print print '#include "trace_parser.hpp"' print - print 'static std::map __texture_map;' + for name in ['texture', 'framebuffer', 'renderbuffer']: + print 'static std::map __%s_map;' % name print retrace_functions(glapi.glapi.functions)