1
General / Help With Replacement for GetFrameTime()
« on: December 16, 2014, 12:09:01 am »
Hey guys, I am following a tutorial for SFML, and it is a bit outdated. The tutorial is using a function called GetFrameTime that is no longer supported in SFML.
How would I replace the GetFrameTime function here?
void GameObjectManager::UpdateAll()
{
std::map<std::string,VisibleGameObject*>::const_iterator itr =
_gameObjects.begin();
float timeDelta = Game::GetWindow().GetFrameTime();
while(itr != _gameObjects.end())
{
itr->second->Update(timeDelta);
itr++;
}
}
{
std::map<std::string,VisibleGameObject*>::const_iterator itr =
_gameObjects.begin();
float timeDelta = Game::GetWindow().GetFrameTime();
while(itr != _gameObjects.end())
{
itr->second->Update(timeDelta);
itr++;
}
}
How would I replace the GetFrameTime function here?