2020-06-30 23:27:46 +03:00
|
|
|
#include "matrixtransform.hpp"
|
|
|
|
|
|
|
|
namespace NifOsg
|
|
|
|
{
|
2020-07-11 20:15:13 +03:00
|
|
|
MatrixTransform::MatrixTransform()
|
|
|
|
: osg::MatrixTransform()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2020-07-12 15:34:22 +03:00
|
|
|
MatrixTransform::MatrixTransform(const Nif::Transformation &trafo)
|
2020-06-30 23:27:46 +03:00
|
|
|
: osg::MatrixTransform(trafo.toMatrix())
|
|
|
|
, mScale(trafo.scale)
|
|
|
|
, mRotationScale(trafo.rotation)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
MatrixTransform::MatrixTransform(const MatrixTransform ©, const osg::CopyOp ©op)
|
|
|
|
: osg::MatrixTransform(copy, copyop)
|
|
|
|
, mScale(copy.mScale)
|
|
|
|
, mRotationScale(copy.mRotationScale)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|