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