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

Method SetPosition

ZEngine/src/OrthographicCameraController.cpp:55–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 }
54
55 void OrthographicCameraController::SetPosition(const Maths::Vector3& position) {
56 m_orthographic_camera->SetPosition(position);
57 }
58
59 void OrthographicCameraController::UpdateProjectionMatrix() {
60 m_orthographic_camera->SetProjectionMatrix(glm::ortho(-m_aspect_ratio * m_zoom_factor, m_aspect_ratio * m_zoom_factor, -m_zoom_factor, m_zoom_factor));

Callers 2

InitializeMethod · 0.45
UpdateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected