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#define GLUT_NO_LIB_PRAGMA /* Avoid auto library linking when building 11 the GLUT library itself. */ 12#include <GL/glut.h> 13 14#if defined(_MSC_VER) 15#pragma warning (disable:4244) /* disable bogus conversion warnings */ 16#pragma warning (disable:4305) /* VC++ 5.0 version of above warning. */ 17#endif 18 19typedef struct { 20 float x; 21 float y; 22} CoordRec, *CoordPtr; 23 24typedef struct { 25 int num_coords; 26 const CoordRec *coord; 27} StrokeRec, *StrokePtr; 28 29typedef struct { 30 int num_strokes; 31 const StrokeRec *stroke; 32 float center; 33 float right; 34} StrokeCharRec, *StrokeCharPtr; 35 36typedef struct { 37 const char *name; 38 int num_chars; 39 const StrokeCharRec *ch; 40 float top; 41 float bottom; 42} StrokeFontRec, *StrokeFontPtr; 43 44typedef void *GLUTstrokeFont; 45 46#endif /* __glutstroke_h__ */ 47