I working on a Processing program that runs in to different windows. On holds the controllers, thats the main PApplet, the other one is running some OpenGL and is a subclass of PApplet as well.
Creating an instance of the OpenGL window isn't too difficult but how do I destroy()
it without calling exit()
and killing the entire process. I just want to close the second window and free all it's resources.
I couldn't find any proper solution.