MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / setSize

Method setSize

src/Core/Scene/Camera.cpp:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 }
30
31 void Camera::setSize(const double pSize, const Transform::Referential& ref)
32 {
33 Rect::setSize(
34 Transform::UnitVector(pSize * 2
35 * (Transform::UnitVector::Screen.w / Transform::UnitVector::Screen.h),
36 pSize * 2, m_size.unit),
37 ref);
38 this->apply();
39 }
40
41 void Camera::scale(const double pScale, const Transform::Referential& ref)
42 {

Callers 5

scaleMethod · 0.95
LoadClassCameraFunction · 0.45
LoadClassRectFunction · 0.45
loadMethod · 0.45
applyTextureMethod · 0.45

Calls 2

applyMethod · 0.95
UnitVectorClass · 0.85

Tested by

no test coverage detected