summaryrefslogtreecommitdiff
path: root/gfx/gl/camera.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2022-12-13 12:14:43 +0000
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2022-12-13 12:14:43 +0000
commitc20c5167510758353d5a62cfff24fd5494b9c5a4 (patch)
tree2b249e1c94fe26593ea22972b486553da8b57bda /gfx/gl/camera.h
parentCalculate an accurate up vector for the camera (diff)
downloadilt-c20c5167510758353d5a62cfff24fd5494b9c5a4.tar.bz2
ilt-c20c5167510758353d5a62cfff24fd5494b9c5a4.tar.xz
ilt-c20c5167510758353d5a62cfff24fd5494b9c5a4.zip
Add Camera method to get the extents of the view frustrum at some distance
Diffstat (limited to 'gfx/gl/camera.h')
-rw-r--r--gfx/gl/camera.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gfx/gl/camera.h b/gfx/gl/camera.h
index 2d937a0..1ded3e0 100644
--- a/gfx/gl/camera.h
+++ b/gfx/gl/camera.h
@@ -61,6 +61,8 @@ public:
return position;
}
+ std::array<glm::vec3, 4> extentsAtDist(float) const;
+
static glm::vec3 upFromForward(const glm::vec3 & forward);
private: