mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:38:02 +02:00
Missed a spot with the conversion from pointers to references.
This commit is contained in:
parent
34565a4956
commit
aff465b17b
2 changed files with 4 additions and 4 deletions
|
@ -225,7 +225,7 @@ int ViewFrustum::boxInFrustum(const AABox& box) const {
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ViewFrustum::computePickRay(float x, float y, glm::vec3* origin, glm::vec3* direction) const {
|
void ViewFrustum::computePickRay(float x, float y, glm::vec3& origin, glm::vec3& direction) const {
|
||||||
*origin = _nearTopLeft + x*(_nearTopRight - _nearTopLeft) + y*(_nearBottomLeft - _nearTopLeft);
|
origin = _nearTopLeft + x*(_nearTopRight - _nearTopLeft) + y*(_nearBottomLeft - _nearTopLeft);
|
||||||
*direction = glm::normalize(*origin - _position);
|
direction = glm::normalize(origin - _position);
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,7 @@ public:
|
||||||
int sphereInFrustum(const glm::vec3& center, float radius) const;
|
int sphereInFrustum(const glm::vec3& center, float radius) const;
|
||||||
int boxInFrustum(const AABox& box) const;
|
int boxInFrustum(const AABox& box) const;
|
||||||
|
|
||||||
void computePickRay(float x, float y, glm::vec3* origin, glm::vec3* direction) const;
|
void computePickRay(float x, float y, glm::vec3& origin, glm::vec3& direction) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue