rename window::frame_tick to window::poll_events

This commit is contained in:
2018-09-29 06:40:13 +07:00
parent 4da9442a31
commit 6482e0ea62
5 changed files with 20 additions and 19 deletions

View File

@@ -20,9 +20,9 @@ int e2d_main() {
while ( !the<window>().should_close() && !k.is_key_just_released(keyboard_key::escape) ) {
the<render>().set_clear_color({1.f, 0.4f, 0.f});
the<render>().clear(true, true, true);
the<input>().frame_tick();
the<window>().swap_buffers(true);
window::frame_tick();
the<input>().frame_tick();
window::poll_events();
}
return 0;
}