1 /* 2 * Copyright 1994-1997 Mark Kilgard, All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * GPL licensing not permitted. 6 * 7 * Authors: 8 * Mark Kilgard 9 */ 10 #ifndef __glutstroke_h__ 11 #define __glutstroke_h__ 12 13 14 #if defined(_WIN32) 15 #pragma warning (disable:4244) /* disable bogus conversion warnings */ 16 #pragma warning (disable:4305) /* VC++ 5.0 version of above warning. */ 17 #endif 18 19 typedef struct { 20 float x; 21 float y; 22 } CoordRec, *CoordPtr; 23 24 typedef struct { 25 int num_coords; 26 const CoordRec *coord; 27 } StrokeRec, *StrokePtr; 28 29 typedef struct { 30 int num_strokes; 31 const StrokeRec *stroke; 32 float center; 33 float right; 34 } StrokeCharRec, *StrokeCharPtr; 35 36 typedef struct { 37 const char *name; 38 int num_chars; 39 const StrokeCharRec *ch; 40 float top; 41 float bottom; 42 } StrokeFontRec, *StrokeFontPtr; 43 44 typedef void *GLUTstrokeFont; 45 46 #endif /* __glutstroke_h__ */ 47