Hello,
I am writing a multithreaded application, where a selection from a menu in one openGL window opens a new configuration window (which should only be open temporaraly). I spawn another thread to create and render this new window.
I want the user to be able to close this window and return to work on the original window but at the moment, when the new configuration window is closed, it closes all other windows (eg the entire application closes). I don’t understand this as it is a seperate thread.
Both windows have seperate Display Functions.
Is there any command to close a GL window that wont cause the entire app to close? ( exit(0); causes this)
The windows are created with the following code (if that matters)…
glutInit( &(__argc), __argv);
glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA);
glutInitWindowPosition(130,100);
glutInitWindowSize(50,50);
int mainWindowID = glutCreateWindow("Configuration tool");
glutDisplayFunc(renderConfigurationTool);
Thanks,
Conor.