00001
00002
00003
00004
00005
00006
00007
00008 #ifndef TRUE
00009 #define TRUE 1
00010 #endif
00011
00012 #ifndef FALSE
00013 #define FALSE 0
00014 #endif
00015
00016
00017
00018
00019
00020
00021 typedef struct
00022 {
00023 float dx, dy;
00024 float tx1, ty1;
00025 float tx2, ty2;
00026 } GLFONTCHAR;
00027
00028
00029 typedef struct
00030 {
00031 int Tex;
00032 int TexWidth, TexHeight;
00033 int IntStart, IntEnd;
00034 GLFONTCHAR *Char;
00035 } GLFONT;
00036
00037
00038
00039
00040
00041
00042 int glFontCreate (GLFONT *Font, char *FileName, int Tex);
00043
00044
00045 void glFontDestroy (GLFONT *Font);
00046
00047
00048 void glFontBegin (GLFONT *Font);
00049
00050
00051 void glFontEnd (void);
00052
00053
00054 void glFontTextOut (char *String, float x, float y,
00055 float z);
00056
00057
00058
00059
00060