| 1 | #include "Library/Camera/CameraViewInfo.h" |
|---|---|
| 2 | |
| 3 | #include "Library/Projection/Projection.h" |
| 4 | |
| 5 | namespace al { |
| 6 | |
| 7 | CameraViewInfo::CameraViewInfo(s32 index, const sead::LookAtCamera& lookAtCam, |
| 8 | const Projection& projection, const CameraViewFlag& flag, |
| 9 | const OrthoProjectionInfo& orthoProjectionInfo) |
| 10 | : mIndex(index), mLookAtCam(lookAtCam), mProjection(projection), mViewFlag(flag), |
| 11 | mOrthoProjectionInfo(orthoProjectionInfo) {} |
| 12 | |
| 13 | const sead::Projection& CameraViewInfo::getProjectionSead() const { |
| 14 | return mProjection.getProjectionSead(); |
| 15 | } |
| 16 | |
| 17 | const sead::Matrix44f& CameraViewInfo::getProjMtx() const { |
| 18 | return mProjection.getProjMtx(); |
| 19 | } |
| 20 | |
| 21 | const sead::Matrix44f& CameraViewInfo::getProjMtxStd() const { |
| 22 | return mProjection.getMtxStd(); |
| 23 | } |
| 24 | |
| 25 | f32 CameraViewInfo::getAspect() const { |
| 26 | return mProjection.getAspect(); |
| 27 | } |
| 28 | |
| 29 | f32 CameraViewInfo::getNear() const { |
| 30 | return mProjection.getNear(); |
| 31 | } |
| 32 | |
| 33 | f32 CameraViewInfo::getFar() const { |
| 34 | return mProjection.getFar(); |
| 35 | } |
| 36 | |
| 37 | } // namespace al |
| 38 |