diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-04-13 00:07:20 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-04-13 00:07:20 +0200 |
commit | 440d57cec25e4d54584cff8c54b3f5ac5b72da9f (patch) | |
tree | b9985adc0050b678648a95be2211cfbd810f4923 | |
parent | 31bf2ba85b17b9085681eb4fdaca940e6f4c17e3 (diff) |
Add a splash screen.
-rw-r--r-- | src/render.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render.cpp b/src/render.cpp index 88ad25f..1dc6581 100644 --- a/src/render.cpp +++ b/src/render.cpp @@ -21,6 +21,8 @@ along with Minitrem. If not, see <http://www.gnu.org/licenses/>. static sf::RectangleShape wot_rect; static sf::Font font; +#include <unistd.h> + namespace render { state_t::state_t(sf::RenderWindow *window_) @@ -28,6 +30,10 @@ state_t::state_t(sf::RenderWindow *window_) window = window_; font.loadFromFile("assets/FanwoodText.otf"); + + window->clear(); + render_text(v2f_t(0, 0), 50, "Loading...", ALIGN_LEFT_TOP, sf::Color::White); + window->display(); } typedef struct { |