2 /* Copyright (c) Mark J. Kilgard, 1994. */
4 /* This program is freely distributable without licensing fees
5 and is provided without guarantee or warrantee expressed or
6 implied. This program is -not- in the public domain. */
10 #else /* for xscreensaver */
19 # endif /* HAVE_JWZGLES */
21 # define APIENTRY /**/
24 #include "glutstroke.h"
27 glutStrokeCharacter(GLUTstrokeFont font, int c)
29 const StrokeCharRec *ch;
30 const StrokeRec *stroke;
31 const CoordRec *coord;
32 StrokeFontPtr fontinfo;
37 fontinfo = (StrokeFontPtr) __glutFont(font);
39 fontinfo = (StrokeFontPtr) font;
42 if (c < 0 || c >= fontinfo->num_chars)
44 ch = &(fontinfo->ch[c]);
46 for (i = ch->num_strokes, stroke = ch->stroke;
47 i > 0; i--, stroke++) {
48 glBegin(GL_LINE_STRIP);
49 for (j = stroke->num_coords, coord = stroke->coord;
50 j > 0; j--, coord++) {
51 glVertex2f(coord->x, coord->y);
55 glTranslatef(ch->right, 0.0, 0.0);