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

Method PerspectiveCamera

ZEngine/src/PerspectiveCamera.cpp:6–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace ZEngine::Rendering::Cameras {
5
6 PerspectiveCamera::PerspectiveCamera(float field_of_view, float aspect_ratio, float near, float far) : m_yaw_angle(0.0f), m_pitch_angle(0.0f), m_radius(0.0f) {
7 m_camera_type = CameraType::PERSPECTIVE;
8 m_projection = Maths::perspective(field_of_view, aspect_ratio, near, far);
9 UpdateCoordinateVectors();
10 UpdateViewMatrix();
11 }
12
13 void PerspectiveCamera::SetTarget(const Maths::Vector3& target) {
14 Camera::SetTarget(target);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected