MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getAspectRatio

Method getAspectRatio

Engine/source/postFx/postEffect.cpp:1797–1801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1795}
1796
1797F32 PostEffect::getAspectRatio() const
1798{
1799 const Point2I &rtSize = GFX->getActiveRenderTarget()->getSize();
1800 return (F32)rtSize.x / (F32)rtSize.y;
1801}
1802
1803void PostEffect::_checkRequirements()
1804{

Callers 1

postEffect.cppFile · 0.45

Calls 2

getActiveRenderTargetMethod · 0.80
getSizeMethod · 0.45

Tested by

no test coverage detected