コード例 #1
0
void IslandControl::runSimulation()
{
    while(runOneFrame())
    {
        wait(1);
    }
    deathCounters[currentDeath] += 1;
}
コード例 #2
0
ファイル: Application.cpp プロジェクト: svn2github/oois
void Application::run()
{
    initialize();
    setupScene();

    Ogre::Timer timer;
    timer.reset();

    mRunning = true;
    while (mRunning)
    {
        const Ogre::Real delta=
            timer.getMicroseconds() * static_cast<Ogre::Real>(0.000001f);
        timer.reset();

        runOneFrame(delta);
    }

    finalize();
}