#ifndef _FONTRAVEN_OPENGL_H #define _FONTRAVEN_OPENGL_H #include "common.h" #include "font.h" // OpenGL implementation of texture fonts. class FontOpenGL: public FontBase { protected: // font metrics float pt,*wids,*bears,*hoss; int *qvws,*qvhs; float *qtws,*qths; // glyph textures GLuint *textures; FontOpenGL(): FontBase() {} public: FontOpenGL(TrueTypeFont *ttf); // create from a truetype font ~FontOpenGL(); virtual void Render(int x,int y,const char *text); // render text at a screenspace location }; #endif