MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / update

Method update

source/gamemap/MiniMapCamera.cpp:150–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void 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
165void MiniMapCamera::updateMinimapCamera()
166{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected