[PyOpenGL-Users] glRectfv ctypes bug?
Brought to you by:
mcfletch
From: altern <al...@gm...> - 2007-11-19 09:34:21
|
hi I am porting an old app to the new PyOPenGL and I get an error at glRectfv( vlist[0], vlist[2] ) It says "wrappercall types.Argument.Error: ("argument 1: <type 'exceptions.TypeError'>: byref() argument must be ctypes instance, not 'tuple', [(-5.5, -5.5), <OpenGL.arrays.listsc_floatArray_2 object at 0x02x10210>])" my bet is that this is a bug because I can replace it by glBegin(GL_QUADS) glVertex2fv( vlist[0] ) glVertex2fv( vlist[1] ) glVertex2fv( vlist[2] ) glVertex2fv( vlist[3] ) glEnd() and this draws the rect with no errors at all. enrike |