Brian Paul | 225517a | 2003-06-13 21:49:46 +0000 | [diff] [blame^] | 1 | #ifndef __glutstroke_h__
|
| 2 | #define __glutstroke_h__
|
| 3 |
|
| 4 | /* Copyright (c) Mark J. Kilgard, 1994. */
|
| 5 |
|
| 6 | /* This program is freely distributable without licensing fees
|
| 7 | and is provided without guarantee or warrantee expressed or
|
| 8 | implied. This program is -not- in the public domain. */
|
| 9 |
|
| 10 | #if defined(_WIN32)
|
| 11 | #pragma warning (disable:4244) /* disable bogus conversion warnings */
|
| 12 | #pragma warning (disable:4305) /* VC++ 5.0 version of above warning. */
|
| 13 | #endif
|
| 14 |
|
| 15 | typedef struct {
|
| 16 | float x;
|
| 17 | float y;
|
| 18 | } CoordRec, *CoordPtr;
|
| 19 |
|
| 20 | typedef struct {
|
| 21 | int num_coords;
|
| 22 | const CoordRec *coord;
|
| 23 | } StrokeRec, *StrokePtr;
|
| 24 |
|
| 25 | typedef struct {
|
| 26 | int num_strokes;
|
| 27 | const StrokeRec *stroke;
|
| 28 | float center;
|
| 29 | float right;
|
| 30 | } StrokeCharRec, *StrokeCharPtr;
|
| 31 |
|
| 32 | typedef struct {
|
| 33 | const char *name;
|
| 34 | int num_chars;
|
| 35 | const StrokeCharRec *ch;
|
| 36 | float top;
|
| 37 | float bottom;
|
| 38 | } StrokeFontRec, *StrokeFontPtr;
|
| 39 |
|
| 40 | typedef void *GLUTstrokeFont;
|
| 41 |
|
| 42 | #endif /* __glutstroke_h__ */
|