On Wed, Apr 28, 2010 at 10:03 PM, Richard Jones <[email protected]>wrote: [snip quotation]
> > The argument to glDeleteFramebuffersEXT (and all gl* functions) should > be GL* types, which will be correct on a given platform, not c_* > types. > > The signature for glGenFramebuffersEXT is: > > void glGenFramebuffersEXT (GLsizei n, GLuint *ids); > > and the cocos code should be using those types. > > > Richard > Thanks for your pointer, Richard ! I choose glGenTextures - glDeleteTextures in pyglet.gl (similar signatures) and grep-ed the pyglet source to see a use example. I patched cocos\gl_framebuffer_object.py (attached). Lucas, can you give a try ? You should replace the in the cocos directory. And the test is the same as last time. Richard: I noticed two forms to pass the GLuint *ids in pyglet: id = GLuint(texture_id) glDeleteTextures(1, id) and id = GLuint() glGenTextures(1, byref(id)) Now, the two functions have the same second param type: GLuint *ids Is there a reason to use the second, long form, to pass the second parameter ? -- claudio -- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en.
gl_framebuffer_object.py
Description: Binary data
