Menu

#242 glutStrokeLength has incorrect argtypes

open
GLUT (25)
5
2011-09-26
2011-09-26
Anonymous
No

Attempting to call glutStrokeLength with a font and string results in:

ArgumentError: argument 2: <type 'exceptions.TypeError'>: expected LP_c_ubyte instance instead of str

Adding:

glutStrokeLength.argtypes = [ctypes.c_void_p, ctypes.c_char_p]

To my file corrects the problem.

It takes the same arguments at glutStrokeString which is replaced in freeglut.py. I think glutStrokeLength needs the same treatment.

Discussion


Log in to post a comment.