| 1401 | //----------------------------------------------------------------------------- |
| 1402 | |
| 1403 | void makeFrustum( F32 *outLeft, |
| 1404 | F32 *outRight, |
| 1405 | F32 *outTop, |
| 1406 | F32 *outBottom, |
| 1407 | F32 fovYInRadians, |
| 1408 | F32 aspectRatio, |
| 1409 | F32 nearPlane ) |
| 1410 | { |
| 1411 | F32 top = nearPlane * mTan( fovYInRadians / 2.0 ); |
| 1412 | if ( outTop ) *outTop = top; |
| 1413 | if ( outBottom ) *outBottom = -top; |
| 1414 | |
| 1415 | F32 left = top * aspectRatio; |
| 1416 | if ( outLeft ) *outLeft = -left; |
| 1417 | if ( outRight ) *outRight = left; |
| 1418 | } |
| 1419 | |
| 1420 | //----------------------------------------------------------------------------- |
| 1421 |
no test coverage detected