metaforce/DataSpec/DNAMP1/CSKR.hpp

40 lines
854 B
C++
Raw Normal View History

2015-08-11 23:32:02 +00:00
#ifndef _DNAMP1_CSKR_HPP_
#define _DNAMP1_CSKR_HPP_
2018-06-29 20:21:36 +00:00
#include "DataSpec/DNACommon/DNACommon.hpp"
2015-08-13 07:29:00 +00:00
#include "CINF.hpp"
2015-08-11 23:32:02 +00:00
2017-12-29 08:08:12 +00:00
namespace DataSpec::DNAMP1
2015-08-11 23:32:02 +00:00
{
struct CSKR : BigDNA
{
2018-02-22 07:24:51 +00:00
AT_DECL_DNA
2015-08-11 23:32:02 +00:00
Value<atUint32> skinningRuleCount;
struct SkinningRule : BigDNA
{
2018-02-22 07:24:51 +00:00
AT_DECL_DNA
2015-08-11 23:32:02 +00:00
Value<atUint32> weightCount;
struct Weight : BigDNA
{
2018-02-22 07:24:51 +00:00
AT_DECL_DNA
2015-08-11 23:32:02 +00:00
Value<atUint32> boneId;
Value<float> weight;
};
2018-02-25 08:23:27 +00:00
Vector<Weight, AT_DNA_COUNT(weightCount)> weights;
2015-08-11 23:32:02 +00:00
Value<atUint32> vertCount;
};
2018-02-25 08:23:27 +00:00
Vector<SkinningRule, AT_DNA_COUNT(skinningRuleCount)> skinningRules;
2015-08-13 07:29:00 +00:00
2015-09-26 03:12:08 +00:00
const atInt16* getMatrixBank(size_t) const
{
return nullptr;
}
2017-12-29 08:08:12 +00:00
void weightVertex(hecl::blender::PyOutStream& os, const CINF& cinf, atUint32 idx) const;
2015-08-11 23:32:02 +00:00
};
}
#endif // _DNAMP1_CSKR_HPP_