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 */
18 # elif defined(HAVE_ANDROID)
27 # endif /* HAVE_JWZGLES */
30 # define APIENTRY /**/
33 #include "glutstroke.h"
36 glutStrokeCharacter(GLUTstrokeFont font, int c)
38 const StrokeCharRec *ch;
39 const StrokeRec *stroke;
40 const CoordRec *coord;
41 StrokeFontPtr fontinfo;
46 fontinfo = (StrokeFontPtr) __glutFont(font);
48 fontinfo = (StrokeFontPtr) font;
51 if (c < 0 || c >= fontinfo->num_chars)
53 ch = &(fontinfo->ch[c]);
55 for (i = ch->num_strokes, stroke = ch->stroke;
56 i > 0; i--, stroke++) {
57 glBegin(GL_LINE_STRIP);
58 for (j = stroke->num_coords, coord = stroke->coord;
59 j > 0; j--, coord++) {
60 glVertex2f(coord->x, coord->y);
64 glTranslatef(ch->right, 0.0, 0.0);