From 9f88509c8e440d9bb3430b71708efd69988f461c Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 2 Dec 2017 12:28:40 +0100 Subject: Tracing rays through the world. --- src/render.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/render.cpp') diff --git a/src/render.cpp b/src/render.cpp index 943ffcf..7e90190 100644 --- a/src/render.cpp +++ b/src/render.cpp @@ -222,6 +222,16 @@ void state_t::render_hlrect(rectf_t rect, sf::Color color) wot_rect.setOutlineColor(sf::Color::Transparent); } +void state_t::render_arrow(v2f_t x0, v2f_t x1, sf::Color color) +{ + sf::Vertex line[2] = { + sf::Vertex(x0, color), + sf::Vertex(x1, color) + }; + + window->draw(line, 2, sf::Lines); +} + void state_t::debug_path(std::list *path) { bool first = true; -- cgit