1UNTITLED LOCAL UNTITLED
2
4 glutStrokeString — Draw a string of stroked characters.
5
7 OpenGLUT - fonts
8
10 #include <openglut.h>
11
12 void
13 glutStrokeString(void *fontID, const unsigned char *string);
14
16 fontID A GLUT stroked font identifier.
17
18 string A NUL-terminated ASCII string.
19
21 This function draws a string in the font indicated by fontID. It is
22 almost equivalent to calling glutStrokeCharacter() on each character in
23 the string, successively. Mostly, it is a convenience function to hide
24 the loop, and to treat \n as a special symbol rather than a normal glyph.
25
26 The first character displays at the current model space origin, The ori‐
27 gin changes by successive translations.
28
29 The newline character, \n (ASCII LF) is treated as a newline and resets
30 the origin horizontally while advancing the line 1 font-height down the
31 y-axis.
32
33 Does nothing if:
34 - fontID is out of range.
35 - string is NULL
36 - string is empty
37
38 Unlike glutBitmapString(), there is little performance advantage to using
39 glutStrokeString() as compared with calling glutStrokeCharacter() your‐
40 self for every character.
41
43 glutStrokeLength(3) glutStrokeCharacter(3) glutStrokeHeight(3)
44 glutBitmapString(3)
45
46
47
48
49 Epoch