2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 14:27:42 +00:00

New code style refactor

This commit is contained in:
Jack Andersen
2018-12-07 19:30:43 -10:00
parent 41ae32be31
commit 636c82a568
1451 changed files with 171430 additions and 203303 deletions

View File

@@ -1,25 +1,20 @@
#include "CSkinBank.hpp"
#include "CPoseAsTransforms.hpp"
namespace urde
{
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);
CSkinBank::CSkinBank(CInputStream& in) {
u32 boneCount = in.readUint32Big();
x0_segments.reserve(boneCount);
for (u32 i = 0; i < boneCount; ++i)
x0_segments.emplace_back(in);
}
void CSkinBank::GetBankTransforms(std::vector<const zeus::CTransform*>& out,
const CPoseAsTransforms& pose) const
{
for (CSegId id : x0_segments)
{
const zeus::CTransform& xf = pose.GetRestToAccumTransform(id);
out.push_back(&xf);
}
void CSkinBank::GetBankTransforms(std::vector<const zeus::CTransform*>& out, const CPoseAsTransforms& pose) const {
for (CSegId id : x0_segments) {
const zeus::CTransform& xf = pose.GetRestToAccumTransform(id);
out.push_back(&xf);
}
}
}
} // namespace urde