| 44 | } |
| 45 | |
| 46 | Matrix4x4 StereoCamera::GetCameraToWorldMatrix(const u_int index) const { |
| 47 | if (index == 0) |
| 48 | return leftEye->GetCameraToWorldMatrix(); |
| 49 | else if (index == 1) |
| 50 | return rightEye->GetCameraToWorldMatrix(); |
| 51 | else |
| 52 | throw runtime_error("Unknown index in GetCameraToWorldMatrix(): " + ToString(index)); |
| 53 | } |
| 54 | |
| 55 | void StereoCamera::Update(const u_int width, const u_int height, |
| 56 | const u_int *subRegion) { |
no test coverage detected