| 86 | //----------------------------------------------------------------------------- |
| 87 | |
| 88 | void 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 | |