From 006a1496a531eaa78f0016c5d2b2ddce1f58421f Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Thu, 26 Apr 2018 19:06:44 +0200 Subject: Enable texture filtering. --- src/render.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/render.cpp b/src/render.cpp index 54fbe58..a923c1d 100644 --- a/src/render.cpp +++ b/src/render.cpp @@ -51,6 +51,7 @@ void register_tile(uint8_t type, const char *top, const char *side, float height tile->top = new sf::Texture; tile->top->loadFromFile(top); tile->top->setRepeated(true); + tile->top->setSmooth(true); if (height > 0.0f) { tile->height = height; @@ -58,6 +59,7 @@ void register_tile(uint8_t type, const char *top, const char *side, float height tile->side = new sf::Texture; tile->side->loadFromFile(side); tile->side->setRepeated(true); + tile->side->setSmooth(true); } tile->layer = layer; @@ -546,6 +548,8 @@ bool animated_texture_t::load(std::string prefix, size_t frame_count_) frame_count = 0; return false; } + + frames[i].setSmooth(true); } return true; -- cgit