I’m trying to make an application that may have an arbitrary number of windows ( 0 or more on mac optimally, and probably 1 or more for other OSs). The windows will all be the same, and for the most part independent. I’m basically making a file editor that can work on multiple files at once.
I’m looking for the best approach for doing this.
I can work with a single ShowBase instance, and make window’s with it’s openWindow (or roll my own equivalent on my ShowBase subclass). ShowBase seems to have a special relation with its MainWindow though (things like render2D and such just get setup on it I think).
Another approach, and I’m not sure if it could work at all would to be to make a ShowBase for each of my windows.
Or I can ditch those 2500+ lines of python and avoid ShowBase completely. It does some nice things I like though (like render2D and pixel2D, mouse and keyboard support etc.).
Generally, whats the proper approach for making multiple panda3d main windows?
Dealing with all the frame rendering for the windows is not much of an issue for me. I’ll be doing that manually and usually all windows will be inactive (Its an editor and nothing is animating, so no point of rendering lots of identical frames)
-Thanks