| 1388 | //----------------------------------------------------------------------------- |
| 1389 | |
| 1390 | void makeFrustum( F32 *outLeft, |
| 1391 | F32 *outRight, |
| 1392 | F32 *outTop, |
| 1393 | F32 *outBottom, |
| 1394 | F32 fovYInRadians, |
| 1395 | F32 aspectRatio, |
| 1396 | F32 nearPlane ) |
| 1397 | { |
| 1398 | F32 top = nearPlane * mTan( fovYInRadians / 2.0 ); |
| 1399 | if ( outTop ) *outTop = top; |
| 1400 | if ( outBottom ) *outBottom = -top; |
| 1401 | |
| 1402 | F32 left = top * aspectRatio; |
| 1403 | if ( outLeft ) *outLeft = -left; |
| 1404 | if ( outRight ) *outRight = left; |
| 1405 | } |
| 1406 | |
| 1407 | //----------------------------------------------------------------------------- |
| 1408 |
no test coverage detected