00001 /* 00002 * Modified Hershey Roman font rendering code. 00003 * 00004 * $Id: Hershey.h,v 1.7 2011/02/10 21:22:35 johns Exp $ 00005 */ 00006 #ifndef __Hershey_h__ 00007 #define __Hershey_h__ 00008 00009 /* private handle data structure */ 00010 typedef struct { 00011 float lm; 00012 float rm; 00013 const char *p; 00014 } hersheyhandle; 00015 00019 void hersheyDrawLetterOpenGL(unsigned char ch, int drawendpoints); 00020 00027 void hersheyDrawInitLetter(hersheyhandle *hh, const char ch, 00028 float *lm, float *rm); 00029 00036 int hersheyDrawNextLine(hersheyhandle *hh, int *draw, float *x, float *y); 00037 00038 #endif /* __Hershey_h__ */