mirror of
https://github.com/MonsterDruide1/OdysseyDecomp
synced 2026-04-23 09:04:21 +00:00
38 lines
1 KiB
C++
38 lines
1 KiB
C++
#include "Library/Camera/CameraViewInfo.h"
|
|
|
|
#include "Library/Projection/Projection.h"
|
|
|
|
namespace al {
|
|
|
|
CameraViewInfo::CameraViewInfo(s32 index, const sead::LookAtCamera& lookAtCam,
|
|
const Projection& projection, const CameraViewFlag& flag,
|
|
const OrthoProjectionInfo& orthoProjectionInfo)
|
|
: mIndex(index), mLookAtCam(lookAtCam), mProjection(projection), mViewFlag(flag),
|
|
mOrthoProjectionInfo(orthoProjectionInfo) {}
|
|
|
|
const sead::Projection& CameraViewInfo::getProjectionSead() const {
|
|
return mProjection.getProjectionSead();
|
|
}
|
|
|
|
const sead::Matrix44f& CameraViewInfo::getProjMtx() const {
|
|
return mProjection.getProjMtx();
|
|
}
|
|
|
|
const sead::Matrix44f& CameraViewInfo::getProjMtxStd() const {
|
|
return mProjection.getMtxStd();
|
|
}
|
|
|
|
f32 CameraViewInfo::getAspect() const {
|
|
return mProjection.getAspect();
|
|
}
|
|
|
|
f32 CameraViewInfo::getNear() const {
|
|
return mProjection.getNear();
|
|
}
|
|
|
|
f32 CameraViewInfo::getFar() const {
|
|
return mProjection.getFar();
|
|
}
|
|
|
|
} // namespace al
|