On Mon, Oct 17, 2011 at 4:05 PM, David Byrd <[email protected]> wrote:
> I've installed 0.4.0 but I'm having a problem with anything that > requires frame buffer objects. > > Miharu:cocos2d-0.4.0 mitsuharu$ glxinfo | grep -i framebuffer > GL_ARB_fragment_shader, GL_ARB_framebuffer_object, > GL_ARB_framebuffer_sRGB, GL_ARB_half_float_pixel, > GL_EXT_draw_range_elements, GL_EXT_fog_coord, > GL_EXT_framebuffer_blit, > GL_EXT_framebuffer_multisample, GL_EXT_framebuffer_object, > GL_EXT_framebuffer_sRGB, GL_EXT_geometry_shader4, > > I have support for it, but I always get something like: > > Miharu:test mitsuharu$ python test_waves.py > Traceback (most recent call last): > File "../cocos/framegrabber.py", line 67, in TextureGrabber > return _best_grabber() > File "../cocos/framegrabber.py", line 164, in __init__ > self.fbuf = FramebufferObject() > File "../cocos/gl_framebuffer_object.py", line 51, in __init__ > glGenFramebuffersEXT (1, byref(id)) > NameError: global name 'byref' is not defined > byref should come from ctypes, and theres no import. Would you mind to try to add in cocos/gl_framebuffer_object.py the line from ctypes import byref (add just before from pyglet.gl import * ) and try again the problematic script ? Thanks, -- 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.
