def handle_window_resize(self):
        """ This method gets called when the window gets resized. By default,
        this just resizes all render targets. """
        self.set_dimensions()
        for target in itervalues(self._targets):
            target.consider_resize()
 This method gets called when the window gets resized. By default,
        this just resizes all render targets. 
metadrive/render_pipeline/rpcore/render_stage.py