| 307 | } |
| 308 | |
| 309 | MultiMeshManager::MultiMeshManager(const std::string & _name) : name(_name) |
| 310 | { |
| 311 | initShaders(); |
| 312 | |
| 313 | auto cube = Mesh::getTestCube(); |
| 314 | TrackBall tb; |
| 315 | tb.fromMesh(*cube, Viewport(0,0,1600,1200)); |
| 316 | camera_handler.fromCamera(tb.getCamera()); |
| 317 | |
| 318 | camera_handler.switchMode(InteractiveCameraHandler::InteractionMode::TRACKBALL); |
| 319 | } |
| 320 | |
| 321 | void MultiMeshManager::onUpdate(Input & input, const Viewport & vp) |
| 322 | { |
nothing calls this directly
no test coverage detected