metaforce/DataSpec/DNAMP1/CSKR.hpp

30 lines
732 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2015-08-11 23:32:02 +00:00
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
2018-12-08 05:30:43 +00:00
namespace DataSpec::DNAMP1 {
2015-08-11 23:32:02 +00:00
2018-12-08 05:30:43 +00:00
struct CSKR : BigDNA {
AT_DECL_DNA
Value<atUint32> skinningRuleCount;
struct SkinningRule : BigDNA {
2018-02-22 07:24:51 +00:00
AT_DECL_DNA
2018-12-08 05:30:43 +00:00
Value<atUint32> weightCount;
struct Weight : BigDNA {
AT_DECL_DNA
Value<atUint32> boneId;
Value<float> weight;
2015-08-11 23:32:02 +00:00
};
2018-12-08 05:30:43 +00:00
Vector<Weight, AT_DNA_COUNT(weightCount)> weights;
Value<atUint32> vertCount;
};
Vector<SkinningRule, AT_DNA_COUNT(skinningRuleCount)> skinningRules;
2015-08-13 07:29:00 +00:00
2018-12-08 05:30:43 +00:00
const atInt16* getMatrixBank(size_t) const { return nullptr; }
2015-09-26 03:12:08 +00:00
2018-12-08 05:30:43 +00:00
void weightVertex(hecl::blender::PyOutStream& os, const CINF& cinf, atUint32 idx) const;
2015-08-11 23:32:02 +00:00
};
2018-12-08 05:30:43 +00:00
} // namespace DataSpec::DNAMP1