diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-06-11 23:35:30 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-06-11 23:35:30 +0200 |
commit | 440808a5ad98bdcd4024a2e0f552d83dfa21c5d2 (patch) | |
tree | 193622e8249ad9cd02c79a66c4cd04be3a0d48b0 /main.cpp | |
parent | da042f527536ba2ba82e5aa823e4fd132afebe1e (diff) |
a
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -51,7 +51,7 @@ struct application final : Platform::Application loader.tile_atlas("../share/game/images/metal1.tga", {2, 2}); //loader.tile_atlas("../share/game/images/floor1.tga", {4, 4}); std::shared_ptr<atlas_texture> atlas2 = - loader.tile_atlas("../share/game/images/metal2.tga", {4, 4}); + loader.tile_atlas("../share/game/images/metal2.tga", {2, 2}); std::uint64_t time_ticks = 0, time_freq = SDL_GetPerformanceFrequency(); Vector3 camera_offset; @@ -160,7 +160,7 @@ void application::drawEvent() { { //auto ratio = projection_size_ratio(); auto sz = windowSize(); - _shader.set_projection({(float)sz[0], (float)sz[1]}, 1); + _shader.set_scale({ (float)sz[0], (float)sz[1] }); } #if 1 |