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

adsofont.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * $Id: adsofont.h,v 1.5 2003/06/27 08:36:41 schou Exp $
00003  * Author: Jakob Schou Jensen <schou@sourceforge.net>
00004  * Licence: GPL
00005  *
00006  * Description: Adso font
00007  *
00008  ****************************************************************************/
00009 
00015 #ifndef ADSOFONT_H
00016 #define ADSOFONT_H
00017 
00018 #include <adsobase.h>
00019 #include <GL/gl.h>
00020 #include <GL/glu.h>
00021 
00022 class AdsoFont {
00023   GLuint fontOffset;
00024   int fontWidth, fontHeight;
00025   //AdsoFont(){};
00026 
00027  public:
00028   int width(){return fontWidth;}
00029   int height(){return fontHeight;}
00030   void printString(int x, int y, char *s, int n);
00031   void printString(int x, int y, char *s);
00032   friend AdsoFont *adsoOpenFont(char *fontname);
00033 };
00034 
00035 int adsoSaveFont(char *fontname, int width, int height, GLubyte *table);
00036 AdsoFont *adsoOpenFont(char *fontname);
00037 
00038 #endif
00039 

Generated on Mon Jul 21 10:44:47 2003 for Rover by doxygen 1.3.2