Constructor
| 34 | |
| 35 | // Constructor |
| 36 | Camera::Camera() : Object3D() { |
| 37 | |
| 38 | // Set default values |
| 39 | mFieldOfView = 45.0f; |
| 40 | mSceneRadius = 1.0f; |
| 41 | mNearPlane = 0.1f; |
| 42 | mFarPlane = 10.0f; |
| 43 | mWidth = 1; |
| 44 | mHeight = 1; |
| 45 | |
| 46 | // Update the projection matrix |
| 47 | updateProjectionMatrix(); |
| 48 | } |
| 49 | |
| 50 | // Destructor |
| 51 | Camera::~Camera() { |
nothing calls this directly
no outgoing calls
no test coverage detected