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

Method getProjectionMatrix

Engine/source/math/util/frustum.cpp:562–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560//-----------------------------------------------------------------------------
561
562void Frustum::getProjectionMatrix( MatrixF *proj, bool gfxRotate ) const
563{
564 if (mIsOrtho)
565 {
566 MathUtils::makeOrthoProjection(proj, mNearLeft, mNearRight, mNearTop, mNearBottom, mNearDist, mFarDist, gfxRotate);
567 proj->mulL(mProjectionOffsetMatrix);
568 }
569 else
570 {
571 MathUtils::makeProjection(proj, mNearLeft, mNearRight, mNearTop, mNearBottom, mNearDist, mFarDist, gfxRotate);
572 proj->mulL(mProjectionOffsetMatrix);
573 }
574}
575
576//-----------------------------------------------------------------------------
577

Callers 15

updateFaceMethod · 0.80
setGFXMatricesMethod · 0.80
getFrustumClipProjMethod · 0.80
fromGFXWithViewportMethod · 0.80
renderSceneMethod · 0.80
SceneRenderStateMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderObjectMethod · 0.80

Calls 3

makeOrthoProjectionFunction · 0.85
makeProjectionFunction · 0.85
mulLMethod · 0.80

Tested by

no test coverage detected