📄 gui.h
字号:
#ifndef _GUI_H_
#define _GUI_H_
#include "font.h"
#include "sprite.h"
#include "minimap.h"
class GcGui
{
public:
// Initialize the GUI (build the font etc)
GcGui();
// Clean up the GUI
~GcGui();
// Change the projection matrix to 2D making things ready to draw the GUI
void Begin();
// Change the projection matrix back to 3D
void End();
// Load the GUI
bool Load(GcTexture *land, uint mapWidth);
// Draw the GUI
void Draw(float x, float y);
// Draw text
void Print(char *string, int x, int y);
private:
GcFont font; // Used in writing text
GcSprite aim; // The crosshair
GcSprite hud; // The HUD
GcMinimap map;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -