Comparing the printed output of str(props) before and after the setFullscreen() shows that it does toggle the fullscreen option in the WindowProperties object. Similarly printing the output of getRejectedProperties() shows that nothing was rejected, even though the change had no effect. Am I only able to affect fullscreen before the window is created? Alternately, is there a way to create a new fullscreen window, transfer my scenegraph, and destroy the old window?
The requestProperties() interface to set fullscreen mode is present, but not yet supported in the current version of Panda. (It really should have rejected that property; the fact that it didn’t sounds like a minor bug.)
Until we have that interface fully implemented, you have to create a new window. This is fairly easy to do. You could do something like:
Coming back to this topic again…
I’ve tried all sorts of things that just aren’t working for me. When I create a new window using the method you suggest, with base.openMainWindow(), it certainly creates that window in fullscreen (or another windowed one, for debugging), and I can tell that my application is running and doing things with the mouse events it receives. However, I can’t see anything. The entire window context is black, and I’ve tried reparenting nodes, verifying that the render2d node seems to be the same, calling show() on various things, and recreating some of my UI objects. But I can’t get anything to show up in the window. Do you know why this might be? Have the render and render2d nodes just gone off into space, never to be seen again? My primary timing task continues to run, and I know that’s tied to framerate, but I don’t know if it would acutally be the window framerate or an internal Panda framerate, so I can’t verify that the window is really trying to draw.
In 1.1.0 as well as a couple of other things but I can’t get it to go full-screen. What I want Panda to do is change the screen resolution to one I request and go to fullscreen mode. I can get it to destroy the current window, create a new window at the desired resolution, and execute within the new window, but it simply doesn’t go to full screen.
I entered ‘fullscreen #t’ in the Config.prc also (also tried ‘fullscreen t’) but that did nothing either.
Not a particularly big deal but I would like to see it full-screen.
Are you running on Linux? X-windows doesn’t actually support a fullscreen mode in the same sense that Windows does. The best you can do is open an “undecorated” window the same size as your desktop, and placed at (0, 0):