📄 main.cpp
字号:
#include "game.h"
int WINAPI WinMain( HINSTANCE hinstance, HINSTANCE hprev, PSTR cmdline, int ishow )
{
// This becomes our singleton
static Game game;
game.GetWindow()->SetName("Test game");
game.GetWindow()->ShowCursor();
GcSettings::ReadSettings();
// Sett fullscreen mode if used
if(GcSettings::FullScreen()) {
game.GetWindow()->SetFullscreenMode(GcSettings::ScreenWidth(),
GcSettings::ScreenHeight(),
GcSettings::ScreenDepth());
}
return game.Create(hinstance, cmdline, ishow, GcSettings::ScreenWidth(),
GcSettings::ScreenHeight());
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -