Translate the camera
| 153 | |
| 154 | // Translate the camera |
| 155 | void Scene::translate(int xMouse, int yMouse) { |
| 156 | float dx = static_cast<float>(xMouse - mLastMouseX); |
| 157 | float dy = static_cast<float>(yMouse - mLastMouseY); |
| 158 | |
| 159 | // Translate the camera |
| 160 | mCamera.translateCamera(-dx / float(mCamera.getWidth()), |
| 161 | -dy / float(mCamera.getHeight()), mCenterScene); |
| 162 | } |
| 163 | |
| 164 | // Rotate the camera |
| 165 | void Scene::rotate(int xMouse, int yMouse) { |
nothing calls this directly
no test coverage detected