mirror of
https://github.com/panda3d/panda3d.git
synced 2026-03-16 23:42:18 -05:00
Ability to suppress pipe info
This commit is contained in:
@@ -450,14 +450,15 @@ class ShowBase(DirectObject.DirectObject):
|
||||
if self.oldexitfunc:
|
||||
self.oldexitfunc()
|
||||
|
||||
def makeDefaultPipe(self):
|
||||
def makeDefaultPipe(self, printPipeTypes = True):
|
||||
"""
|
||||
Creates the default GraphicsPipe, which will be used to make
|
||||
windows unless otherwise specified.
|
||||
"""
|
||||
assert self.pipe == None
|
||||
selection = GraphicsPipeSelection.getGlobalPtr()
|
||||
selection.printPipeTypes()
|
||||
if printPipeTypes:
|
||||
selection.printPipeTypes()
|
||||
self.pipe = selection.makeDefaultPipe()
|
||||
if not self.pipe:
|
||||
self.notify.error(
|
||||
|
||||
Reference in New Issue
Block a user