void f5() { int OutputValue; int InputValue = 20; OutputFunction(OutputValue); InputFunction(InputValue); }
// 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(); }