Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - shakenbake158

Pages: [1]
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.

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++;
  }
 
}


How would I replace the GetFrameTime function here?

Pages: [1]
anything