//----------------------------------------------------------------------- void Frustum::updateView(void) const { if (isViewOutOfDate()) { updateViewImpl(); } }
//----------------------------------------------------------------------- bool Frustum::isFrustumOutOfDate(void) const { // Deriving custom near plane from linked plane? if (mObliqueDepthProjection) { // Out of date when view out of data since plane needs to be in view space if (isViewOutOfDate()) { mRecalcFrustum = true; } // Update derived plane if (mLinkedObliqueProjPlane && !(mLastLinkedObliqueProjPlane == mLinkedObliqueProjPlane->_getDerivedPlane())) { mObliqueProjPlane = mLinkedObliqueProjPlane->_getDerivedPlane(); mLastLinkedObliqueProjPlane = mObliqueProjPlane; mRecalcFrustum = true; } } return mRecalcFrustum; }