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

Method MakeData

Engine/source/EtFramework/Components/CameraComponent.cpp:67–87  ·  view source on GitHub ↗

------------------------------- CameraComponentDesc::MakeData Create a camera component from a descriptor

Source from the content-addressed store, hash-verified

65// Create a camera component from a descriptor
66//
67CameraComponent* CameraComponentDesc::MakeData()
68{
69 CameraComponent* const ret = new CameraComponent();
70
71 if (isPerspective)
72 {
73 ret->UseOrthographicProjection();
74 }
75 else
76 {
77 ret->UseOrthographicProjection();
78 }
79
80 ret->SetFieldOfView(fieldOfView);
81 ret->SetOrthoSize(size);
82
83 ret->SetNearClippingPlane(nearPlane);
84 ret->SetFarClippingPlane(farPlane);
85
86 return ret;
87}
88
89
90} // namespace fw

Callers

nothing calls this directly

Calls 5

SetOrthoSizeMethod · 0.80
SetNearClippingPlaneMethod · 0.80
SetFarClippingPlaneMethod · 0.80
SetFieldOfViewMethod · 0.45

Tested by

no test coverage detected