コード例 #1
0
 def openMainWindow(self, *args, **kw):
     result = ShowBase.openMainWindow(self, *args, **kw)
     if result:
         self.wantEnviroDR = not self.win.getGsg().isHardware(
         ) or config.GetBool('want-background-region', 1)
         self.backgroundDrawable = self.win
     return result
コード例 #2
0
 def openMainWindow(self, *args, **kw):
     result = ShowBase.openMainWindow(self, *args, **kw)
     if result:
         if not not self.win.getGsg().isHardware():
             pass
         self.wantEnviroDR = config.GetBool('want-background-region', 1)
         self.backgroundDrawable = self.win
     
     return result
コード例 #3
0
 def openMainWindow(self, *args, **kw):
     result = ShowBase.openMainWindow(self, *args, **kw)
     if result:
         self.wantEnviroDR = (not self.win.getGsg().isHardware()
                              or ConfigVariableBool(
                                  "want-background-region", 1).getValue())
         self.backgroundDrawable = self.win
         pass
     return result