| 1434 | //----------------------------------------------------------------------------- |
| 1435 | |
| 1436 | void makeFovPortFrustum( |
| 1437 | Frustum *outFrustum, |
| 1438 | bool isOrtho, |
| 1439 | F32 nearDist, |
| 1440 | F32 farDist, |
| 1441 | const FovPort &inPort, |
| 1442 | const MatrixF &transform) |
| 1443 | { |
| 1444 | F32 leftSize = nearDist * inPort.leftTan; |
| 1445 | F32 rightSize = nearDist * inPort.rightTan; |
| 1446 | F32 upSize = nearDist * inPort.upTan; |
| 1447 | F32 downSize = nearDist * inPort.downTan; |
| 1448 | |
| 1449 | F32 left = -leftSize; |
| 1450 | F32 right = rightSize; |
| 1451 | F32 top = upSize; |
| 1452 | F32 bottom = -downSize; |
| 1453 | |
| 1454 | outFrustum->set(isOrtho, left, right, top, bottom, nearDist, farDist, transform); |
| 1455 | } |
| 1456 | |
| 1457 | //----------------------------------------------------------------------------- |
| 1458 |
no test coverage detected