-
OpenGL
hi,
I have a problem regard OpenGL. Hope someone can help me pls.
In my main program, i called up a Dialog Box with a Button when clicked, it will show the 2 windows(line graphs were plotted n displayed in these 2 windows).
However, after i closed the 2 windows, it will terminate my program directly instead of going back to the main program to continue with the program. Is there any command i should include after "glutMainLoop();" to let it loop back to the main?
Thanks for all your time
Best Regards,
wayne
-
after glutMainLoop() exits your application is over. You can either integrate your dialog code into the glut framework (you will always have an opengl window open in this case) or use separate processes to launch your graphs. (recreating them each time you need them)