diff options
author | chai <chaifix@163.com> | 2018-07-28 21:37:51 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-07-28 21:37:51 +0800 |
commit | fb1ca399126712a03fd41fe555a6228618da1665 (patch) | |
tree | ca2484c6632bf1fb3b86441006fb3f81812c801e /test/01HelloWorld/main.cpp | |
parent | 714b68bf2e6e3caf7119b40210cad291a9a349f2 (diff) |
*update
Diffstat (limited to 'test/01HelloWorld/main.cpp')
-rw-r--r-- | test/01HelloWorld/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/01HelloWorld/main.cpp b/test/01HelloWorld/main.cpp index 6d76c8a..d187849 100644 --- a/test/01HelloWorld/main.cpp +++ b/test/01HelloWorld/main.cpp @@ -22,7 +22,6 @@ void onDraw() dt += 16; if (dt > 1000) { - std::cout << "a"; dt = 0; } } @@ -36,13 +35,15 @@ int main(int argc, char* argv[]) setting.drawer = onDraw; game->init(&setting); - WindowSystem* wnd = WindowSystem::get(); - WindowSystem::Setting wndSetting; + Window* wnd = Window::get(); + Window::Setting wndSetting; wndSetting.width = 600; wndSetting.height = 512; wndSetting.title = "test"; wndSetting.fps = 60; wndSetting.vsync = false; + wndSetting.fullscreen = false; + wndSetting.resizable = true; wnd->init(&wndSetting); game->run(); |