From 1010d0d526ad7419449f19ac4db42d63f7731540 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Fri, 16 Feb 2018 21:10:24 +0100 Subject: Add basic widget implementation (not usable) and configure cmake --- src/main/cpp/Widget.cpp | 8 ++++++++ src/main/cpp/WorldScene.cpp | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/main/cpp/Widget.cpp (limited to 'src/main/cpp') diff --git a/src/main/cpp/Widget.cpp b/src/main/cpp/Widget.cpp new file mode 100644 index 0000000..82773bc --- /dev/null +++ b/src/main/cpp/Widget.cpp @@ -0,0 +1,8 @@ +#include "Widget.hpp" + +#include + +void Widget::render() +{ + sf::RectangleShape rect; +} diff --git a/src/main/cpp/WorldScene.cpp b/src/main/cpp/WorldScene.cpp index 8887f6f..4b7d940 100644 --- a/src/main/cpp/WorldScene.cpp +++ b/src/main/cpp/WorldScene.cpp @@ -16,7 +16,7 @@ void WorldScene::render() rect.setOutlineThickness(-.5); rect.setOutlineColor(sf::Color::Black); - for (const Tile &tile : map.tiles()) { + for (const Tile &tile : _map.tiles()) { rect.setPosition(tile.x * _tileSize, tile.y * _tileSize); _window.draw(rect); } -- cgit v1.2.1