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

Method SetToCamera

Engine/source/EtRendering/GraphicsTypes/Frustum.cpp:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void Frustum::SetToCamera(Camera const& camera)
41{
42 m_Position = camera.GetPosition();
43
44 m_Forward = camera.GetForward();
45 m_Up = camera.GetUp();
46 m_Right = math::cross(m_Up, m_Forward);
47
48 m_NearPlane = camera.GetNearPlane();
49 m_FarPlane = camera.GetFarPlane();
50 m_FOV = camera.GetFOV();
51}
52
53void Frustum::Update(Viewport const* const viewport)
54{

Callers 2

RecalculateDerivedMethod · 0.80
UpdateMethod · 0.80

Calls 3

GetNearPlaneMethod · 0.80
GetFarPlaneMethod · 0.45
GetFOVMethod · 0.45

Tested by

no test coverage detected