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

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

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