summaryrefslogtreecommitdiff
path: root/game/selectable.h
blob: c16246c2ec619896856ff6fc645fa2418b97fb1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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