I have a grid of RectangleShapes in my project:
(https://i.imgur.com/dB0f1Ol.png)
And when I try to add an outline to a cell
m_rect.setOutlineColor(sf::Color::Cyan);
m_rect.setOutlineThickness(1.f);
* m_rect's type is RectangleShape
I looks like this:
(https://i.imgur.com/4vPoOn3.png)
uname -a
Linux localhost 4.19.8-arch1-1-ARCH #1 SMP PREEMPT Sat Dec 8 13:49:11 UTC 2018 x86_64 GNU/Linux
sfml version: 2.5.1-1
What am I doing wrong?
I've tried to reproduce this in a small example, but there it works fine. The outline color is cyan.
So, here is a piece of my project's code: https://pastebin.com/hfG6zxFi.
I draw cells with this code m_cells[i][j]->draw(target, states);
and then just call select/unselect everytime a player clicks on a cell.
Sorry that there's not a small example.