| 583 | } |
| 584 | |
| 585 | void Logic::CameraController::storeKeyframe(unsigned idx) |
| 586 | { |
| 587 | Keyframe f; |
| 588 | f.position = m_ViewMatrix.Invert().Translation(); |
| 589 | f.lookat = -1.0f * m_ViewMatrix.Invert().Forward(); |
| 590 | |
| 591 | if(idx >= m_Keyframes.size()) |
| 592 | m_Keyframes.resize(idx + 1, f); |
| 593 | |
| 594 | m_Keyframes[idx] = f; |
| 595 | } |
| 596 | |
| 597 | void Logic::CameraController::clearKeyframes() |
| 598 | { |
nothing calls this directly
no test coverage detected