| 47 | } |
| 48 | |
| 49 | bool Window3::OnResize(int32_t xSize, int32_t ySize) |
| 50 | { |
| 51 | if (Window::OnResize(xSize, ySize)) |
| 52 | { |
| 53 | float upFovDegrees, aspectRatio, dMin, dMax; |
| 54 | mCamera->GetFrustum(upFovDegrees, aspectRatio, dMin, dMax); |
| 55 | mCamera->SetFrustum(upFovDegrees, GetAspectRatio(), dMin, dMax); |
| 56 | mTrackBall.SetXSize(xSize); |
| 57 | mTrackBall.SetYSize(ySize); |
| 58 | mPVWMatrices.Update(); |
| 59 | return true; |
| 60 | } |
| 61 | return false; |
| 62 | } |
| 63 | |
| 64 | bool Window3::OnCharPress(uint8_t key, int32_t x, int32_t y) |
| 65 | { |
nothing calls this directly
no test coverage detected