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

Method SetProjectionMatrix

ZEngine/src/PerspectiveCamera.cpp:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 }
25
26 void PerspectiveCamera::SetProjectionMatrix(const Maths::Matrix4& projection) {
27 Camera::SetProjectionMatrix(projection);
28 UpdateCoordinateVectors();
29 UpdateViewMatrix();
30 }
31
32 void PerspectiveCamera::UpdateCoordinateVectors() {
33 m_forward = Maths::normalize(m_position - m_target);

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected