From 7c8b8a39fd36e190578587d8d92f28f460a1fc4b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 2 Jan 2022 21:07:37 +0000 Subject: Encapsulate Ray --- game/selectable.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'game/selectable.h') diff --git a/game/selectable.h b/game/selectable.h index 0104f3d..3d734f3 100644 --- a/game/selectable.h +++ b/game/selectable.h @@ -3,11 +3,13 @@ #include #include +class Ray; + class Selectable { public: Selectable() = default; virtual ~Selectable() = default; DEFAULT_MOVE_COPY(Selectable); - [[nodiscard]] virtual bool intersectRay(const glm::vec3 &, const glm::vec3 &, glm::vec2 *, float *) const = 0; + [[nodiscard]] virtual bool intersectRay(const Ray &, glm::vec2 *, float *) const = 0; }; -- cgit v1.2.3