void glWindow::run_events() { if ( glWindow::glutinitialized ) { #ifdef __linux__ glutMainLoopEvent(); idleFunc(); #endif #ifdef __APPLE__ glutCheckLoop(); #endif } }
void runEventLoop() { initGlut(); glutThreadId = boost::this_thread::get_id(); mainLoopRunning = true; while (mainLoopRunning) { #ifdef TARGET_OSX glutCheckLoop(); #elif TARGET_LINUX glutMainLoopEvent(); #endif } }
void Window::glutDisplayFrame() { glutCheckLoop(); }