| 163 | } |
| 164 | |
| 165 | void MiniMapCamera::updateMinimapCamera() |
| 166 | { |
| 167 | const Ogre::Vector3& camPos = mCameraManager.getActiveCameraNode()->getPosition(); |
| 168 | mCurCamPosX = Helper::round(camPos.x); |
| 169 | mCurCamPosY = Helper::round(camPos.y); |
| 170 | |
| 171 | const Ogre::Quaternion& orientation = mCameraManager.getActiveCameraNode()->getOrientation(); |
| 172 | mMiniMapCam->setPosition(mCurCamPosX, mCurCamPosY, CAM_HEIGHT); |
| 173 | mMiniMapCam->lookAt(mCurCamPosX, mCurCamPosY, 0.0); |
| 174 | mMiniMapCam->roll(orientation.getRoll()); |
| 175 | } |
| 176 | |
| 177 | void MiniMapCamera::preRenderTargetUpdate(const Ogre::RenderTargetEvent& rte) |
| 178 | { |
nothing calls this directly
no test coverage detected