📄 glfont.h
字号:
/*
gltext.h - Font class
Copyright (c) HalfLucifer, 2001.6.15
*/#ifndef __GLFONTH__#define __GLFONTH__
#include "gltexture.h"
extern HWND hWnd; // Window Handle
class GLfont{
protected:
GLuint base; // Base for display list
GLtexture FontTexture; // Font texture
char text[256]; // Text buffer
GLint MatrixMode;
GLint PolygonMode;
GLboolean DepthOn;
GLboolean LightingOn;
GLboolean TextureOn;
GLboolean ScissorOn;
GLboolean BlendOn;
GLint BlendSrc;
GLint BlendDst;
public:
RECT Viewport;
GLfont() {}
~GLfont() { glDeleteLists(base, 95); }
bool Initialize(char *filename);
GLvoid Print(GLint xpos, GLint ypos, const char *string, ...);
GLvoid GetStates(GLvoid);
GLvoid SetStates(GLvoid);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -