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
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)
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)