summaryrefslogtreecommitdiff
path: root/src/render.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-02 12:28:40 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-12-02 12:28:40 +0100
commit9f88509c8e440d9bb3430b71708efd69988f461c (patch)
tree289fdedfbff9c4750b2ecf2e1383a2756ae32438 /src/render.cpp
parentb2539e89f054b066ddbe0741d79553321d54a049 (diff)
Tracing rays through the world.
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;