-\r
-/* Copyright (c) Mark J. Kilgard, 1994. */\r
-\r
-/* This program is freely distributable without licensing fees\r
- and is provided without guarantee or warrantee expressed or\r
- implied. This program is -not- in the public domain. */\r
-\r
-#include "glutint.h"\r
-#include "glutstroke.h"\r
-\r
-void GLUTAPIENTRY\r
-glutStrokeCharacter(GLUTstrokeFont font, int c)\r
-{\r
- const StrokeCharRec *ch;\r
- const StrokeRec *stroke;\r
- const CoordRec *coord;\r
- StrokeFontPtr fontinfo;\r
- int i, j;\r
-\r
-\r
-#if defined(_WIN32)\r
- fontinfo = (StrokeFontPtr) __glutFont(font);\r
-#else\r
- fontinfo = (StrokeFontPtr) font;\r
-#endif\r
-\r
- if (c < 0 || c >= fontinfo->num_chars)\r
- return;\r
- ch = &(fontinfo->ch[c]);\r
- if (ch) {\r
- for (i = ch->num_strokes, stroke = ch->stroke;\r
- i > 0; i--, stroke++) {\r
- glBegin(GL_LINE_STRIP);\r
- for (j = stroke->num_coords, coord = stroke->coord;\r
- j > 0; j--, coord++) {\r
- glVertex2f(coord->x, coord->y);\r
- }\r
- glEnd();\r
- }\r
- glTranslatef(ch->right, 0.0, 0.0);\r
- }\r
-}\r
+
+/* Copyright (c) Mark J. Kilgard, 1994. */
+
+/* This program is freely distributable without licensing fees
+ and is provided without guarantee or warrantee expressed or
+ implied. This program is -not- in the public domain. */
+
+#include "glutint.h"
+#include "glutstroke.h"
+
+void GLUTAPIENTRY
+glutStrokeCharacter(GLUTstrokeFont font, int c)
+{
+ const StrokeCharRec *ch;
+ const StrokeRec *stroke;
+ const CoordRec *coord;
+ StrokeFontPtr fontinfo;
+ int i, j;
+
+
+#if defined(_WIN32)
+ fontinfo = (StrokeFontPtr) __glutFont(font);
+#else
+ fontinfo = (StrokeFontPtr) font;
+#endif
+
+ if (c < 0 || c >= fontinfo->num_chars)
+ return;
+ ch = &(fontinfo->ch[c]);
+ if (ch) {
+ for (i = ch->num_strokes, stroke = ch->stroke;
+ i > 0; i--, stroke++) {
+ glBegin(GL_LINE_STRIP);
+ for (j = stroke->num_coords, coord = stroke->coord;
+ j > 0; j--, coord++) {
+ glVertex2f(coord->x, coord->y);
+ }
+ glEnd();
+ }
+ glTranslatef(ch->right, 0.0, 0.0);
+ }
+}