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