How to get the resolution of the OS to set fullscreen properly?
Weird situation, I can call loadPrcFileData(’’, ‘win-size 1366 768’) only before creating a ShowBase instance, but I need to know the screen resolution by base.pipe before doing that to set the fullscreen resolution properly. What to do?
Set window-type to ‘none’ to avoid automatically opening a window, and manually call base.makeDefaultPipe() to open the graphics pipe, after which you can query the resolution. Then you can just open the window using base.openDefaultWindow(size=(123, 456)).