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

Method OrthographicCamera

ZEngine/src/OrthographicCamera.cpp:6–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace ZEngine::Rendering::Cameras {
5
6 OrthographicCamera::OrthographicCamera(float left, float right, float bottom, float top) {
7 m_camera_type = CameraType::ORTHOGRAPHIC;
8 m_projection = Maths::ortho(left, right, bottom, top, -1.0f, 1.0f);
9 UpdateViewMatrix();
10 }
11
12 OrthographicCamera::OrthographicCamera(float left, float right, float bottom, float top, float degree_angle) {
13 m_camera_type = CameraType::ORTHOGRAPHIC;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected