| 148 | } |
| 149 | |
| 150 | void MiniMapCamera::update(Ogre::Real timeSinceLastFrame, const std::vector<Ogre::Vector3>& cornerTiles) |
| 151 | { |
| 152 | mElapsedTime += timeSinceLastFrame; |
| 153 | if(mElapsedTime < MIN_TIME_REFRESH_SECS) |
| 154 | return; |
| 155 | |
| 156 | mElapsedTime = 0; |
| 157 | updateMinimapCamera(); |
| 158 | mCullingManager->computeIntersectionPoints(mMiniMapCam, mCameraTilesIntersections); |
| 159 | mCullingManager->update(mMiniMapCam, mCameraTilesIntersections); |
| 160 | |
| 161 | Ogre::RenderTarget* rt = mMiniMapOgreTexture->getBuffer()->getRenderTarget(); |
| 162 | rt->update(); |
| 163 | } |
| 164 | |
| 165 | void MiniMapCamera::updateMinimapCamera() |
| 166 | { |
nothing calls this directly
no test coverage detected