Browse Source

makeModulePipe

David Rose 17 years ago
parent
commit
cec576dd6b
1 changed files with 10 additions and 0 deletions
  1. 10 0
      direct/src/showbase/ShowBase.py

+ 10 - 0
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