void WeatherController::UpdateViewport()
	{
		if (mCaelumSystem->getDepthComposer ())
		{
			Ogre::Viewport *v = Main::Instance().GetViewport();
			Caelum::DepthComposerInstance* inst = mCaelumSystem->getDepthComposer ()->getViewportInstance (v);
			inst->getDepthRenderer()->getDepthRenderViewport()->setDimensions(v->getActualLeft(), v->getActualTop(), v->getActualWidth(), v->getActualHeight());
		}
	}
Example #2
0
int viewport_get_actual_left(ViewportHandle handle)
{
    Ogre::Viewport* vp = reinterpret_cast<Ogre::Viewport*>(handle);
    return vp->getActualLeft();
}