Beispiel #1
0
 void CScene::Update( float fSeconds, float fRealSeconds ) {
     auto& lst = GetUpdateables();
     for ( auto& p : lst )
     {
         p.second->Update( fSeconds, fRealSeconds );
     }
 }
Beispiel #2
0
void
COpenGLDemo::Update()
{
  m_Timer.Update();
  UpdateableList & lst = GetUpdateables();
  //cout << "passed time: " << m_Timer.GetPassedTime() << endl; 
  for_each( lst.begin(), lst.end(), UpdateOp(m_Timer.GetPassedTime()));
  m_Timer.Reset();
}