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

Method Initialize

ZEngine/src/OrthographicCameraController.cpp:12–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace ZEngine::Controllers {
11
12 void OrthographicCameraController::Initialize() {
13 m_orthographic_camera->SetPosition(m_position);
14 m_orthographic_camera->SetRotation(m_rotation_angle);
15 }
16
17 void OrthographicCameraController::Update(Core::TimeStep dt) {
18 if (IDevice::As<Inputs::Keyboard>()->IsKeyPressed(ZENGINE_KEY_LEFT, m_window.lock())) {

Callers

nothing calls this directly

Calls 2

SetRotationMethod · 0.80
SetPositionMethod · 0.45

Tested by

no test coverage detected