MCPcopy Create free account
hub / github.com/Illation/ETEngine / SetFieldOfView

Method SetFieldOfView

Engine/source/EtRendering/GraphicsTypes/Camera.cpp:54–63  ·  view source on GitHub ↗

---------------------------- Camera::SetFieldOfView Contributes to perspective projection

Source from the content-addressed store, hash-verified

52// Contributes to perspective projection
53//
54void Camera::SetFieldOfView(float const fov, bool const deferRecalculation)
55{
56 m_FieldOfView = fov;
57
58 if (m_IsPerspective && !deferRecalculation)
59 {
60 RecalculateProjection();
61 RecalculateDerived();
62 }
63}
64
65//----------------------------
66// Camera::SetSize

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected