1
0
mirror of https://github.com/r4sas/ExtraMirror synced 2025-01-09 06:18:07 +00:00
ExtraMirror/MiniBase/font.h
2016-08-20 16:08:02 +04:00

32 lines
660 B
C++

#pragma once
#pragma comment(lib,"OpenGL32.lib")
#pragma comment(lib,"GLu32.lib")
#include "main.h"
#include <gl/gl.h>
#include <gl/glu.h>
#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;