mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
add scene, aspectRatio to openWindow
This commit is contained in:
parent
4974c1615d
commit
293438f83e
@ -379,7 +379,7 @@ class ShowBase(DirectObject.DirectObject):
|
|||||||
self.notify.info("Could not make graphics pipe %s." % (pipeType.getName()))
|
self.notify.info("Could not make graphics pipe %s." % (pipeType.getName()))
|
||||||
|
|
||||||
def openWindow(self, props = None, pipe = None, gsg = None,
|
def openWindow(self, props = None, pipe = None, gsg = None,
|
||||||
type = None, name = None):
|
type = None, name = None, scene = None, aspectRatio = None):
|
||||||
"""
|
"""
|
||||||
Creates a window and adds it to the list of windows that are
|
Creates a window and adds it to the list of windows that are
|
||||||
to be updated every frame.
|
to be updated every frame.
|
||||||
@ -440,7 +440,7 @@ class ShowBase(DirectObject.DirectObject):
|
|||||||
self.winList.append(win)
|
self.winList.append(win)
|
||||||
|
|
||||||
# Set up a 3-d camera for the window by default.
|
# Set up a 3-d camera for the window by default.
|
||||||
self.makeCamera(win)
|
self.makeCamera(win, scene = scene, aspectRatio = aspectRatio)
|
||||||
|
|
||||||
return win
|
return win
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user