| 1 | #include "Library/Camera/SnapShotCameraCtrl.h" |
|---|---|
| 2 | |
| 3 | #include "Library/Yaml/ByamlUtil.h" |
| 4 | |
| 5 | namespace al { |
| 6 | |
| 7 | void SnapShotCameraCtrl::load(const ByamlIter& iter) { |
| 8 | CameraParam* param = mParam; |
| 9 | ByamlIter paramIter; |
| 10 | if (!tryGetByamlIterByKey(¶mIter, iter, "SnapShotParam")) |
| 11 | return; |
| 12 | if (tryGetByamlF32(¶m->minFovyDegree, paramIter, "MinFovyDegree")) |
| 13 | param->hasMin = true; |
| 14 | if (tryGetByamlF32(¶m->maxFovyDegree, paramIter, "MaxFovyDegree")) |
| 15 | param->hasMax = true; |
| 16 | } |
| 17 | |
| 18 | } // namespace al |
| 19 |