------------------------------- CameraComponentDesc::MakeData Create a camera component from a descriptor
| 65 | // Create a camera component from a descriptor |
| 66 | // |
| 67 | CameraComponent* CameraComponentDesc::MakeData() |
| 68 | { |
| 69 | CameraComponent* const ret = new CameraComponent(); |
| 70 | |
| 71 | if (isPerspective) |
| 72 | { |
| 73 | ret->UseOrthographicProjection(); |
| 74 | } |
| 75 | else |
| 76 | { |
| 77 | ret->UseOrthographicProjection(); |
| 78 | } |
| 79 | |
| 80 | ret->SetFieldOfView(fieldOfView); |
| 81 | ret->SetOrthoSize(size); |
| 82 | |
| 83 | ret->SetNearClippingPlane(nearPlane); |
| 84 | ret->SetFarClippingPlane(farPlane); |
| 85 | |
| 86 | return ret; |
| 87 | } |
| 88 | |
| 89 | |
| 90 | } // namespace fw |
nothing calls this directly
no test coverage detected