Commit 419ba16e authored by Frédéric Larue's avatar Frédéric Larue
Browse files

Function added to GLViewer to get the current frustum.

parent 5c086ac1
......@@ -275,6 +275,8 @@ public:
inline QMatrix4x4 MVPMatrix( const DisplayableInterface *d ) const { return viewProjectionMatrix() * modelMatrix(d); }
inline QMatrix4x4 MVPMatrixInverse( const DisplayableInterface *d ) const { return MVPMatrix(d).inverted(); }
inline const Frustum& frustum() const { return m_Frustum; }
inline QVector3D viewpointLocation() const
{
const QMatrix4x4& R = viewMatrix();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment