void idleCallback() { Application* app = (Application*)Application::TheApplication; if (app) app->onIdle(); glutPostRedisplay(); }