2010/4/29 Lucas Caro™ <[email protected]>:
> lu...@mayhem:~/pkg/cocos2d-0.3.1-beta/test$ python
> Python 2.5.5 (r255:77872, Feb 2 2010, 00:25:36)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import ctypes
>>>> ctypes.c_uint is ctypes.c_ulong
> False
>>>>
>
> my python2.6 dice:
>
> lu...@mayhem:~/pkg/cocos2d-0.3.1-beta/test$ python2.6
> Python 2.6.5 (r265:79063, Mar 20 2010, 03:56:44)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import ctypes
>>>> ctypes.c_uint is ctypes.c_ulong
> False
>>>>
>
> y al ejecutar el test:
>
> on_enter
> grabbing fbo
> idx: c_uint(1L)
> pt: <cparam 'P' (0x2d685b0)>
> freeing fbo
> Traceback (most recent call last):
> File "test_del__fbo.py", line 64, in <module>
> director.run (main_scene)
> File "../cocos/director.py", line 411, in run
> event_loop.run()
> File "/usr/lib/pymodules/python2.6/pyglet/app/xlib.py", line 94, in run
> sleep_time = self.idle()
> File "/usr/lib/pymodules/python2.6/pyglet/app/__init__.py", line 187, in idle
> dt = clock.tick(True)
> File "/usr/lib/pymodules/python2.6/pyglet/clock.py", line 696, in tick
> return _default.tick(poll)
> File "/usr/lib/pymodules/python2.6/pyglet/clock.py", line 295, in tick
> item.func(delta_t, *item.args, **item.kwargs)
> File "../cocos/cocosnode.py", line 714, in _step
> action.step(dt)
> File "../cocos/actions/base_actions.py", line 101, in step
> self.update( min(1, self._elapsed/self.duration ) )
> File "../cocos/actions/base_actions.py", line 346, in update
> self.actions[ found ].start()
> File "../cocos/actions/instant_actions.py", line 134, in start
> self.func(*self.args, **self.kwargs)
> File "test_del__fbo.py", line 57, in del_fbo
> glDeleteFramebuffersEXT(1, ce.byref(idz))
> ctypes.ArgumentError: argument 2: <type 'exceptions.TypeError'>:
> expected LP_c_uint instance instead of pointer to c_ulong
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
--
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.