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

Method set

Engine/source/math/util/frustum.cpp:88–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86//-----------------------------------------------------------------------------
87
88void Frustum::set( bool isOrtho,
89 F32 fovYInRadians,
90 F32 aspectRatio,
91 F32 nearDist,
92 F32 farDist,
93 const MatrixF &transform )
94{
95 F32 left, right, top, bottom;
96 MathUtils::makeFrustum( &left, &right, &top, &bottom, fovYInRadians, aspectRatio, nearDist );
97
98 tile( &left, &right, &top, &bottom, mNumTiles, mCurrTile, mTileOverlap );
99 set( isOrtho, left, right, top, bottom, nearDist, farDist, transform );
100}
101
102//-----------------------------------------------------------------------------
103

Callers 4

TESTFunction · 0.45
FrustumMethod · 0.45
bakeProjectionOffsetMethod · 0.45
_updateMethod · 0.45

Calls 4

makeFrustumFunction · 0.85
setFunction · 0.50
getPositionMethod · 0.45
normalizeMethod · 0.45

Tested by 1

TESTFunction · 0.36