mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
Declare Corners explicitly
This commit is contained in:
parent
ec496f1907
commit
e2158e48a1
1 changed files with 3 additions and 2 deletions
|
@ -61,7 +61,7 @@ public:
|
|||
float getFarClip() const { return _farClip; }
|
||||
float getFocalLength() const { return _focalLength; }
|
||||
|
||||
const class Corners{
|
||||
class Corners {
|
||||
public:
|
||||
Corners(glm::vec3&& topLeft, glm::vec3&& topRight, glm::vec3&& bottomLeft, glm::vec3&& bottomRight)
|
||||
: topLeft{ topLeft }, topRight{ topRight }, bottomLeft{ bottomLeft }, bottomRight{ bottomRight } {}
|
||||
|
@ -70,7 +70,8 @@ public:
|
|||
glm::vec3 bottomLeft;
|
||||
glm::vec3 bottomRight;
|
||||
// Get the corners depth units from frustum position, along frustum orientation
|
||||
} getCorners(const float& depth);
|
||||
};
|
||||
const Corners getCorners(const float& depth);
|
||||
|
||||
// getters for corners
|
||||
const glm::vec3& getFarTopLeft() const { return _cornersWorld[TOP_LEFT_FAR]; }
|
||||
|
|
Loading…
Reference in a new issue