2020-06-30 20:27:46 +00:00
|
|
|
#include "matrixtransform.hpp"
|
|
|
|
|
|
|
|
namespace NifOsg
|
|
|
|
{
|
2020-07-11 17:15:13 +00:00
|
|
|
MatrixTransform::MatrixTransform()
|
|
|
|
: osg::MatrixTransform()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2020-07-12 12:34:22 +00:00
|
|
|
MatrixTransform::MatrixTransform(const Nif::Transformation &trafo)
|
2020-06-30 20:27:46 +00: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)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|