MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / SetProjectionMatrix

Method SetProjectionMatrix

ZEngine/src/OrthographicCamera.cpp:29–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected