Bug 165 - GLUT 3.8 fixes bugs in glutStrokeLength and adds glutStrokeLengthf
Summary: GLUT 3.8 fixes bugs in glutStrokeLength and adds glutStrokeLengthf
Status: VERIFIED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All all
: P3 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2005-06-10 10:24 CEST by Sven Gothel
Modified: 2015-09-27 03:09 CEST (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments
Patch to fix glutStrokeLength and add glutStrokeLengthf (996 bytes, text/plain)
2005-06-10 10:25 CEST, Sven Gothel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2010-03-24 07:47:53 CET


---- Reported by odin1122 2005-06-10 10:24:18 ----

From: http://pyopengl.sourceforge.net/documentation/manual/glutStrokeWidth.
3GLUT.html

We find that:

The deprecated glutStrokeWidth and glutStrokeLength routines return an integer 
rather than a float. Newer GLUT programs should use the newer float-returning 
routine glutStrokeWidthf and glutStrokeLengthf. Note that these newer float 
routines do not exist in implementations prior to GLUT 3.8. Also, the 
glutStrokeLength routine summed integerized character widths so it 
underestimated the length of strings prior to GLUT 3.8, but the implementation 
of glutStrokeLength in GLUT 3.8 and beyond sums the character widths for the 
strings in a float (though glutStrokeLength still returns an integer).

This patch fixes glutStrokeLength to sum up using a float (though it still 
returns an int), and it also adds glutStrokeLengthf which returns the float.



---- Additional Comments From odin1122 2005-06-10 10:25:06 ----

Created an attachment
Patch to fix glutStrokeLength and add glutStrokeLengthf




---- Additional Comments From kbr 2005-06-21 23:46:26 ----

Thanks for the suggested patch. I've added glutStrokeWidthf and
glutStrokeLengthf and implemented glutStrokeWidth and glutStrokeLength in terms
of them.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:47 EDT  ---

This bug was previously known as _bug_ 165 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=165
Imported an attachment (id=58)

The original submitter of attachment 58 [details] is unknown.
   Reassigning to the person who moved it here: sgothel@jausoft.com.