diff options
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(); |