diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-03-29 14:18:12 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-03-29 14:18:12 +0200 |
commit | 7fb2ba3b4b7d45eceb289356eef67a0118d12c89 (patch) | |
tree | c86b6638605ff50df598e0bb809556846a28f771 | |
parent | 7f53ecde3a481dff3eb4e69f3cfba36d0bece7f9 (diff) |
.
-rw-r--r-- | atlas.cpp | 2 | ||||
-rw-r--r-- | main.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -27,7 +27,7 @@ std::array<Vector2, 4> atlas_texture::texcoords_for_id(int id_) const CORRADE_INTERNAL_ASSERT(id_ >= 0 && id_ < dims_.product()); Vector2i id = { id_ % dims_[0], id_ / dims_[0] }; auto p0 = Vector2(id * tile_size_) / Vector2(size_); - auto p1 = Vector2(Vector2i{1,1} * tile_size_) / Vector2(size_); + auto p1 = Vector2(tile_size_) / Vector2(size_); auto x0 = p0.x(), x1 = p1.x(), y0 = p0.y(), y1 = p1.y(); return {{ { x0+x1, y0+y1 }, // bottom right @@ -107,7 +107,7 @@ application::application(const Arguments& arguments): .setTitle("Test") .setSize({1024, 768}, dpi_policy::Physical), GLConfiguration{} - //.setSampleCount(16) + .setSampleCount(16) } { struct QuadVertex { @@ -194,7 +194,7 @@ void application::drawEvent() { { auto projection = make_projection(camera_offset); - auto ratio = projection_size_ratio(); + //auto ratio = projection_size_ratio(); float y_scale = 1.2f/windowSize()[1]; _shader.set_projection(projection, y_scale); } @@ -211,7 +211,7 @@ void application::drawEvent() { #endif swapBuffers(); - redraw(); + //redraw(); } void application::update(float dt) |