summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-04 08:10:22 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-04 08:10:22 +0100
commit816e00fead5b57a7151c76f60d2ea86011af9039 (patch)
treeba94e32024c17b76bd4afab2dd86bd42bc8a0bee /editor
parent1026f17a3e9c24bfcab0ddd0b63b9dd72ca3641d (diff)
a
Diffstat (limited to 'editor')
-rw-r--r--editor/tests/raycast-test.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/tests/raycast-test.cpp b/editor/tests/raycast-test.cpp
index 1dcf1262..5bc2bf93 100644
--- a/editor/tests/raycast-test.cpp
+++ b/editor/tests/raycast-test.cpp
@@ -260,6 +260,13 @@ struct raycast_test : base_test
draw.AddCircleFilled({p.x(), p.y()}, 10, color3);
draw.AddCircleFilled({p.x(), p.y()}, 7, color);
}
+ else
+ {
+ auto color4 = ImGui::ColorConvertFloat4ToU32({0, 1, 0, 1});
+ auto p = a.point_screen_pos(result.to);
+ draw.AddCircleFilled({p.x(), p.y()}, 10, color3);
+ draw.AddCircleFilled({p.x(), p.y()}, 7, color4);
+ }
}
void draw_ui(app&, float) override