Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class 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 // adapted for VRJuggler framework
00017 #include "glwrap.H"
00018 
00019 //*********************************************************
00020 //Structures
00021 //*********************************************************
00022 
00023 //glFont character structure
00024 typedef struct
00025 {
00026     float dx, dy;
00027     float tx1, ty1;
00028     float tx2, ty2;
00029 } GLFONTCHAR;
00030 
00031 //glFont structure
00032 struct GLFONT
00033 {
00034   //    vjGlContextData<GLuint> Tex;
00035     GLuint Tex;
00036     int TexWidth, TexHeight;
00037     int IntStart, IntEnd;
00038     GLFONTCHAR *Char;
00039 };
00040 
00041 //*********************************************************
00042 //Function Declarations
00043 //*********************************************************
00044 
00045 //Creates a glFont
00046 int glFontCreate (GLFONT *Font, char *FileName);
00047 
00048 //Deletes a glFont
00049 void glFontDestroy (GLFONT *Font);
00050 
00051 //Needs to be called before text output
00052 void glFontBegin (GLFONT *Font);
00053 
00054 //Needs to be called after text output
00055 void glFontEnd (void);
00056 
00057 //Draws text with a glFont
00058 void glFontTextOut (char *String, float x, float y,
00059     float z,GLFONT *Font);
00060 
00061 //returns the bounding box for a string
00062 float glFontBox(char* String, float x,float y, float z, GLFONT *Font);
00063 
00064 //*********************************************************
00065 
00066 //End of file
00067 

Generated on Thu Jul 8 15:19:28 2004 for inspace by doxygen 1.3.4