[ pyopengl-Bugs-3414076 ] glutStrokeLength has incorrect argtypes

SourceForge.net <[email protected]> Mon, 26 Sep 2011 15:34:38 +0000
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
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

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net