Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

glfont.h

Go to the documentation of this file.
00001 //*********************************************************
00002 //GLFONT.H -- Header for GLFONT.CPP
00003 //Copyright (c) 1998 Brad Fish 
00004 //See glFont.txt for terms of use
00005 //November 10, 1998
00006 //*********************************************************
00007 
00008 #ifndef TRUE
00009 #define TRUE    1
00010 #endif
00011 
00012 #ifndef FALSE
00013 #define FALSE    0
00014 #endif
00015 
00016 //*********************************************************
00017 //Structures
00018 //*********************************************************
00019 
00020 //glFont character structure
00021 typedef struct
00022 {
00023     float dx, dy;
00024     float tx1, ty1;
00025     float tx2, ty2;
00026 } GLFONTCHAR;
00027 
00028 //glFont structure
00029 typedef struct
00030 {
00031     int Tex;
00032     int TexWidth, TexHeight;
00033     int IntStart, IntEnd;
00034     GLFONTCHAR *Char;
00035 } GLFONT;
00036 
00037 //*********************************************************
00038 //Function Declarations
00039 //*********************************************************
00040 
00041 //Creates a glFont
00042 int glFontCreate (GLFONT *Font, char *FileName, int Tex);
00043 
00044 //Deletes a glFont
00045 void glFontDestroy (GLFONT *Font);
00046 
00047 //Needs to be called before text output
00048 void glFontBegin (GLFONT *Font);
00049 
00050 //Needs to be called after text output
00051 void glFontEnd (void);
00052 
00053 //Draws text with a glFont
00054 void glFontTextOut (char *String, float x, float y,
00055     float z);
00056 
00057 //*********************************************************
00058 
00059 //End of file
00060 

Generated on Fri Dec 23 05:21:20 2005 for Skybox by doxygen1.2.15