From de9909df038d1b6bb47bcc82fea5f8dc9dec2491 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 28 Dec 2021 15:42:50 +0000 Subject: Initial implementation for being able to click in the main window to select something --- gfx/gl/camera.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gfx/gl/camera.h') diff --git a/gfx/gl/camera.h b/gfx/gl/camera.h index 72f699d..1d3f5b3 100644 --- a/gfx/gl/camera.h +++ b/gfx/gl/camera.h @@ -8,6 +8,7 @@ public: Camera(glm::vec3 pos, float fov, float aspect, float zNear, float zFar); [[nodiscard]] glm::mat4 GetViewProjection() const; + [[nodiscard]] glm::vec3 unProject(const glm::vec2 &) const; glm::vec3 pos; glm::vec3 forward; -- cgit v1.2.3