예제 #1
0
void glWindow::run_events()
{
	if ( glWindow::glutinitialized ) {
#ifdef __linux__
		glutMainLoopEvent();
		idleFunc();
#endif
#ifdef __APPLE__
		glutCheckLoop();
#endif
	}
}
예제 #2
0
	void runEventLoop()
	{
		initGlut();

		glutThreadId = boost::this_thread::get_id();

		mainLoopRunning = true;
		while (mainLoopRunning) {
#ifdef TARGET_OSX
			glutCheckLoop();
#elif TARGET_LINUX
			glutMainLoopEvent();
#endif
		}
	}
예제 #3
0
void Window::glutDisplayFrame()
{
    glutCheckLoop();
}