code: def resize(self, width, height):
          
          self.width = width
          self.height = height
          self.buffer_width, self.buffer_height = glfw.get_framebuffer_size(self.window)
          self.set_default_viewport()
docs: Sets the new size and buffer size internally