示例#1
0
    def shutdown(self):
        self._debug_print('Beginning shutdown')
        Module.pause(self)

        # Close all scenes
        self._debug_print('Destroying Scenes')
        for scene in self._scenes.itervalues():
            scene.destroy()

        # Release references then shutdown
        self._debug_print('Releasing scene references')
        del self._scenes
示例#2
0
 def shutdown(self):
     self._debug_print('Beginning shutdown')
     Module.pause(self)
     
     # Close all scenes
     self._debug_print('Destroying Scenes')
     for scene in self._scenes.itervalues():
         scene.destroy()
     
     # Release references then shutdown
     self._debug_print('Releasing scene references')
     del self._scenes
示例#3
0
    def init(self, config={}):
        self._ogre_root = None
        self._scenes = {}
        self._config = config

        self._debug = config.get('debugOutput', False)

        self._graphics_init(config.get('Graphics', {}))
        self.input_system = InputSystem(config.get('Input', {}))

        config['name'] = 'Simulation'
        Module.__init__(self, config)
示例#4
0
    def init(self, config = {}):
        self._ogre_root = None
        self._scenes = {}
        self._config = config

        self._debug = config.get('debugOutput', False)
        
        self._graphics_init(config.get('Graphics', {}))
        self.input_system = InputSystem(config.get('Input', {}))

        config['name'] = 'Simulation'
        Module.__init__(self, config)