#pragma once #pragma comment(lib,"OpenGL32.lib") #pragma comment(lib,"GLu32.lib") #include "main.h" #include #include #define FL_NONE 0 #define FL_OUTLINE 2 #define FL_BACKDROP 4 #define FL_CENTER 8 #define FL_BOLD 16 #define FL_ALL 255 class cFont { public: void InitText( char* font , int height , int width ); void Print( int x , int y , int r , int g , int b , int a , BYTE flags , char *strText ); private: void Render( int x , int y , int r , int g , int b , int a , char *string ); short cheight; short cwidth[255]; int height; int width; GLuint g_FontListID; }; extern cFont font;