diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-04-26 19:06:44 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-04-26 19:06:44 +0200 |
commit | 006a1496a531eaa78f0016c5d2b2ddce1f58421f (patch) | |
tree | 2f79e704630bc0d250c64a952cecd9e77ab79cfe | |
parent | e96f9c783f852d4557035d78413798cc0e7f7b21 (diff) |
Enable texture filtering.
-rw-r--r-- | src/render.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; |