From e435834ec8e9025c43ea96af614bfce841308734 Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Thu, 9 Oct 2003 03:12:20 +0000 Subject: [PATCH] formatting --- direct/src/showbase/ShowBase.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index 76e512a8f8..580af4f740 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -414,13 +414,11 @@ class ShowBase(DirectObject.DirectObject): def setupRender2d(self): - """setupRender2d(self) - + """ Creates the render2d scene graph, the primary scene graph for 2-d objects and gui elements that are superimposed over the 3-d geometry in the window. """ - self.render2d = NodePath('render2d') # Set up some overrides to turn off certain properties which @@ -466,12 +464,10 @@ class ShowBase(DirectObject.DirectObject): self.a2dRight = self.aspectRatio def makeCamera2d(self, win, left, right, bottom, top): - """makeCamera2d(self) - + """ Makes a new camera2d associated with the indicated window, and assigns it to render the indicated subrectangle of render2d. """ - # First, we need to make a new layer on the window. chan = win.getChannel(0) layer = chan.makeLayer() @@ -498,8 +494,7 @@ class ShowBase(DirectObject.DirectObject): def setupDataGraph(self): - """setupDataGraph(self) - + """ Creates the data graph and populates it with the basic input devices. """ @@ -510,8 +505,7 @@ class ShowBase(DirectObject.DirectObject): def setupMouse(self, win): - """setupMouse(self, win) - + """ Creates the structures necessary to monitor the mouse input, using the indicated window. If the mouse has already been set up for a different window, this changes the mouse to reference