ASE: Add Camera constructor which takes name

pull/1745/head
Turo Lamminen 2018-01-27 18:25:01 +02:00
parent 039ca38542
commit 945f2bed09
1 changed files with 12 additions and 0 deletions

View File

@ -400,6 +400,18 @@ struct Camera : public BaseNode
{
}
//! Construction from an existing name
explicit Camera(const std::string &name)
: BaseNode (BaseNode::Camera, name)
, mFOV (0.75f) // in radians
, mNear (0.1f)
, mFar (1000.f) // could be zero
, mCameraType (FREE)
{
}
ai_real mFOV, mNear, mFar;
CameraType mCameraType;
};