| 27 | } |
| 28 | |
| 29 | void OrthographicCamera::SetProjectionMatrix(const Maths::Matrix4& projection) { |
| 30 | Camera::SetProjectionMatrix(projection); |
| 31 | UpdateViewMatrix(); |
| 32 | } |
| 33 | |
| 34 | void OrthographicCamera::UpdateViewMatrix() { |
| 35 | const auto transform = Maths::translate(Maths::Matrix4(1.0f), m_position) * Maths::rotate(Maths::Matrix4(1.0f), m_angle, Maths::Vector3(0.f, 0.f, 1.f)); |
nothing calls this directly
no outgoing calls
no test coverage detected