Пример #1
0
void f5()
{
    int OutputValue;
    int InputValue = 20;

    OutputFunction(OutputValue);
    InputFunction(InputValue);
}
Пример #2
0
// callbacks
void CGameEngine::IdleFunction(void)
{
	Time.Update();
	InputFunction();

	if(GameEngine.IsPaused() == false)
	{
		glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
		glLoadIdentity();

		PhysicsEngine.Update();
		GameEngine.Idle();
		GameEngine.Render();

		glutSwapBuffers();
	}

	Keyboard.Update();
	Mouse.Update();
}