//----------------------------------------------------------------------- Ogre::Real BasicRenderable::getSquaredViewDepth(const Ogre::Camera* camera) const { Ogre::Node* n = mParent->getParentNode(); assert(n); return n->getSquaredViewDepth(camera); }
Ogre::Real Canvas::getSquaredViewDepth(const Ogre::Camera* cam) const { Ogre::Node* node = this->getParentNode(); assert(node); return node->getSquaredViewDepth(cam); }