2016-04-12 22:28:08 +00:00
|
|
|
#include "CSkinBank.hpp"
|
2016-08-21 20:39:18 +00:00
|
|
|
#include "CPoseAsTransforms.hpp"
|
2016-04-12 22:28:08 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
CSkinBank::CSkinBank(CInputStream& in)
|
|
|
|
{
|
|
|
|
u32 boneCount = in.readUint32Big();
|
|
|
|
x0_segments.reserve(boneCount);
|
|
|
|
for (u32 i=0 ; i<boneCount ; ++i)
|
|
|
|
x0_segments.emplace_back(in);
|
|
|
|
}
|
|
|
|
|
2016-08-21 20:39:18 +00:00
|
|
|
void CSkinBank::GetBankTransforms(std::vector<const zeus::CTransform*>& out,
|
|
|
|
const CPoseAsTransforms& pose) const
|
|
|
|
{
|
|
|
|
for (CSegId id : x0_segments)
|
|
|
|
out.push_back(&pose.GetTransform(id));
|
|
|
|
}
|
|
|
|
|
2016-04-12 22:28:08 +00:00
|
|
|
}
|