metaforce/Runtime/Character/CSkinRules.hpp

30 lines
705 B
C++
Raw Normal View History

2016-04-13 06:07:23 +00:00
#ifndef __URDE_CSKINRULES_HPP__
#define __URDE_CSKINRULES_HPP__
2016-04-09 23:19:17 +00:00
#include "RetroTypes.hpp"
#include "CSkinBank.hpp"
#include "CFactoryMgr.hpp"
2016-04-09 23:19:17 +00:00
namespace urde
{
2016-08-21 20:39:18 +00:00
class CPoseAsTransforms;
class CSkinRules
{
std::vector<CSkinBank> x0_skinBanks;
2016-04-09 23:19:17 +00:00
public:
CSkinRules(CInputStream& in);
void BuildAccumulatedTransforms();
2016-08-21 20:39:18 +00:00
void GetBankTransforms(std::vector<const zeus::CTransform*>& out,
const CPoseAsTransforms& pose, int skinBankIdx) const
{
x0_skinBanks[skinBankIdx].GetBankTransforms(out, pose);
}
};
CFactoryFnReturn FSkinRulesFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& params);
}
2016-04-13 06:07:23 +00:00
#endif // __URDE_CSKINRULES_HPP__