Exemplo n.º 1
0
//----------------------------------------------------------------------------
void Application::UpdateLogic() {
#ifndef MULTITHREADED
    // Update Input
    UpdateInput();

    // Update time variable

    // Run the game logic
    if (!isPaused) Update();

    // Render frame
    UpdateFrame();

    // Update physics simulation
    UpdatePhysics();

    // Update logic done after physics
    if (!isPaused) UpdateLate();

    // Update sound system
    UpdateSound();

    // Update delta time
    // Calculate FPS

    // Increment current frame variable TODO: removeme
    currentFrame++;
#ifdef _DEBUG
    // Update Debug Console
    UpdateDebug();
#endif
#endif
}
Exemplo n.º 2
0
// ---------------------------------------------------------------------------
// SpendTime
// ---------------------------------------------------------------------------
void CControlPanel::SpendTime(const EventRecord	&/*inMacEvent*/)
{
	UInt32 theTick = ::TickCount();
	if (theTick > _lastDraw + _drawInterval) {
		UpdateDebug();
		_lastDraw = theTick;
	}
}
Exemplo n.º 3
0
void CTerraPlayerInput::Update()
{
	UpdateDebug();
}