math::make_perspective_XX

This commit is contained in:
2018-10-16 01:59:19 +07:00
parent 952f468269
commit 20551c736f
3 changed files with 76 additions and 7 deletions

View File

@@ -169,7 +169,7 @@ int e2d_main() {
const auto begin_game_time = time::now_ms();
const auto framebuffer_size = the<window>().real_size().cast_to<f32>();
const auto projection = math::make_orthogonal_matrix4(framebuffer_size.x, framebuffer_size.y, 0.f, 1.f);
const auto projection = math::make_orthogonal_lh_matrix4(framebuffer_size, 0.f, 1.f);
const keyboard& k = the<input>().keyboard();
while ( !the<window>().should_close() && !k.is_key_just_released(keyboard_key::escape) ) {