Resize the camera and trackball when the window is resized.
(self, width, height)
| 240 | |
| 241 | |
| 242 | def on_resize(self, width, height): |
| 243 | """Resize the camera and trackball when the window is resized. |
| 244 | """ |
| 245 | self._size = (width, height) |
| 246 | self._camera.resize(width, height) |
| 247 | self._trackball.resize(self._size) |
| 248 | self.on_draw() |
| 249 | |
| 250 | |
| 251 | def on_mouse_press(self, x, y, buttons, modifiers): |