📄 glfont.h
字号:
#ifndef GLFONT_MODULE
#define GLFONT_MODULE
#include <gl\gl.h>
class GLFont
{
public:
GLFont();
~GLFont();
void SetTexture(GLuint Tex, int xCount, int yCount);
void SetFontProperties(int Width, int Height, int Spacing);
void SetDisplayMode(int dWidth, int dHeight);
void SetBase(int Base);
GLvoid KillFont(GLvoid);
GLvoid BuildFont();
GLvoid Print(GLint x, GLint y, char *string);
private:
GLuint fTexture[1];
GLuint fBase;
int fWidth;
int fHeight;
int fSpacing;
int fStartPos;
int fxCount;
int fyCount;
int fdWidth;
int fdHeight;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -