mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 19:04:32 +02:00
added printDebugDetails()
This commit is contained in:
parent
02d0dbbfba
commit
f63407aea5
2 changed files with 16 additions and 0 deletions
|
@ -276,3 +276,17 @@ void ViewFrustum::computePickRay(float x, float y, glm::vec3& origin, glm::vec3&
|
|||
origin = _nearTopLeft + x*(_nearTopRight - _nearTopLeft) + y*(_nearBottomLeft - _nearTopLeft);
|
||||
direction = glm::normalize(origin - _position);
|
||||
}
|
||||
|
||||
|
||||
void ViewFrustum::printDebugDetails() const {
|
||||
printLog("ViewFrustum::printDebugDetails()... \n");
|
||||
printLog("_position=%f,%f,%f\n", _position.x, _position.y, _position.z );
|
||||
printLog("_direction=%f,%f,%f\n", _direction.x, _direction.y, _direction.z );
|
||||
printLog("_up=%f,%f,%f\n", _up.x, _up.y, _up.z );
|
||||
printLog("_right=%f,%f,%f\n", _right.x, _right.y, _right.z );
|
||||
printLog("_fieldOfView=%f\n", _fieldOfView);
|
||||
printLog("_aspectRatio=%f\n", _aspectRatio);
|
||||
printLog("_nearClip=%f\n", _nearClip);
|
||||
printLog("_farClip=%f\n", _farClip);
|
||||
}
|
||||
|
||||
|
|
|
@ -102,6 +102,8 @@ public:
|
|||
bool matches(const ViewFrustum& compareTo) const;
|
||||
bool matches(const ViewFrustum* compareTo) const { return matches(*compareTo); };
|
||||
void computePickRay(float x, float y, glm::vec3& origin, glm::vec3& direction) const;
|
||||
|
||||
void printDebugDetails() const;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue