From cec576dd6b287b3b2ff2f0e7ba70e18c3ca13b47 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 5 Feb 2009 20:06:34 +0000 Subject: [PATCH] makeModulePipe --- direct/src/showbase/ShowBase.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index b03b214e90..bf67a7e71b 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -467,6 +467,16 @@ class ShowBase(DirectObject.DirectObject): self.pipe.getInterfaceName(), self.pipe.getType().getName())) self.pipeList.append(self.pipe) + def makeModulePipe(self, moduleName): + """ + Returns a GraphicsPipe from the indicated module, + e.g. 'pandagl' or 'pandadx9'. Does not affect base.pipe or + base.pipeList. + """ + + selection = GraphicsPipeSelection.getGlobalPtr() + return selection.makeModulePipe(moduleName) + def makeAllPipes(self): """ Creates all GraphicsPipes that the system knows about and fill up