#ifndef __OGL_FONTE_H #define __OGL_FONTE_H #include "Syst.hpp" #include #include "CTextures.hpp" #include "CLog.hpp" extern int wc,hc; extern CLog c_log; class CFonte { char s_fonte[256]; int screen_x_font, screen_y_font; unsigned int font_base; unsigned int font_text_ID; unsigned int std_tex; unsigned int c0; // cursor ! unsigned int c1; public: CFonte() {}; CFonte(const char * fonte) { screen_y_font = hc; screen_x_font = wc; strcpy(s_fonte,fonte); Build(fonte); } ~CFonte() { glDeleteLists (font_base, 256); memset(s_fonte,0,256*sizeof(char)); } bool Build (const char *fonte); void Kill (); void Printf (GLuint x, GLuint y, int set, GLfloat scale[2], char *fmt,...); void Print (GLint x, GLint y, int set, GLfloat scale[2], char *string); void DrawChar (GLint x, GLint y, int set, GLfloat scale[2], char c); }; #endif