summaryrefslogtreecommitdiff
path: root/game/selectable.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/selectable.h')
-rw-r--r--game/selectable.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/game/selectable.h b/game/selectable.h
new file mode 100644
index 0000000..c16246c
--- /dev/null
+++ b/game/selectable.h
@@ -0,0 +1,16 @@
+#ifndef SELECTABLE_H
+#define SELECTABLE_H
+
+#include <glm/glm.hpp>
+#include <special_members.hpp>
+
+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;
+};
+
+#endif