[PyOpenGL-Users] some problem with conversion
Brought to you by:
mcfletch
From: vwf <vw...@vu...> - 2009-04-29 07:10:59
|
Hello PyOpenGL experts, The latest PyOpenGL (2 april 2009) fixed almost all my problems. Unfortunately, yesterday another one showed up. I do not see a problem in my code. Can it be a bug in PyOpenGL? File "[...]/main_manav.py", line 146, in simulate ogldraw_timeplan(timeplan) File "[...]/ogldraw_new.py", line 378, in ogldraw_timeplan draw_bignumb() File "[...]/drawmap.py", line 2472, in draw_bignumb draw_ticker(1,b,a,pos,'%03d.') File "[...]/drawmap.py", line 2373, in draw_ticker atextLeft(text_Large,pos) File "[...]/pyfont.py", line 255, in atextLeft glCallLists( line ) File "/var/lib/python-support/python2.5/OpenGL/lazywrapper.py", line 9, in __call__ return wrapper( baseFunction, *args, **named ) File "/var/lib/python-support/python2.5/OpenGL/GL/exceptional.py", line 155, in glCallLists ctypes.c_void_p( arrays.GLuintArray.dataPointer(ptr)) TypeError: cannot be converted to pointer The offending code: def atextLeft( l, pos): (x,y)=pos glRasterPos2f( x,y ) for line,metrics in l.lines: glCallLists( line ) Thanks, Frits |