I’m trying to open a new window, but makeOutput() always return none. Strangely, even when I use self.makeWindow(props=wp), with any wp=WindowProperties(), it only returns none.
# set new window properties
wp = WindowProperties()
wp.setOrigin((100,100))
# get default frame buffer properties
fb_prop = FrameBufferProperties.getDefault()
# create graphics output
self.bowl_win = self.graphicsEngine.makeOutput(self.pipe,"bowl_win",0,fb_prop, wp,
GraphicsPipe.BFRequireWindow,self.win.get_gsg())
Ah, after a experimenting a little on my side, I found that–on my machine at least–the WindowProperties object seems to be the culprit.
Specifically, if, instead of a blank WindowProperies object with only the origin specified, I used either the default WindowProperties or a copy of the main window’s properties, I got a functional window from “makeOutput”.
I’d guess then that there’s some setting or group of settings in WindowProperties that’s required for this to work.
As to having a different origin, there is I think nothing to stop you from copying the WindowProperties of the main window, then altering the position-setting in the copy.