simple window and engine debug gui

This commit is contained in:
2019-02-19 11:22:00 +07:00
parent 0ad0803421
commit 0a2f4ca665
7 changed files with 163 additions and 43 deletions

View File

@@ -219,10 +219,15 @@ namespace
bool frame_tick() final {
const keyboard& k = the<input>().keyboard();
if ( the<window>().should_close() || k.is_key_just_released(keyboard_key::escape) ) {
return false;
}
if ( k.is_key_just_pressed(keyboard_key::f12) ) {
the<dbgui>().toggle_visible(!the<dbgui>().visible());
}
const auto framebuffer_size = the<window>().real_size().cast_to<f32>();
const auto projection = math::make_perspective_lh_matrix4(
make_deg(45.f),