summaryrefslogtreecommitdiff
path: root/src/render.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render.cpp')
-rw-r--r--src/render.cpp10
1 files changed, 10 insertions, 0 deletions
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<v2f_t> *path)
{
bool first = true;