[PyOpenGL-Devel] [ pyopengl-Bugs-3414076 ] glutStrokeLength has incorrect argtypes
Brought to you by:
mcfletch
From: SourceForge.net <no...@so...> - 2011-09-26 15:34:39
|
Bugs item #3414076, was opened at 2011-09-26 15:34 Message generated for change (Tracker Item Submitted) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=3414076&group_id=5988 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: GLUT Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Mike C. Fletcher (mcfletch) Summary: glutStrokeLength has incorrect argtypes Initial Comment: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=3414076&group_id=5988 |