2015-08-11 23:32:02 +00:00
|
|
|
#ifndef _DNAMP1_CSKR_HPP_
|
|
|
|
#define _DNAMP1_CSKR_HPP_
|
|
|
|
|
|
|
|
#include "../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
|
|
|
|
{
|
|
|
|
DECL_DNA
|
|
|
|
Value<atUint32> skinningRuleCount;
|
|
|
|
struct SkinningRule : BigDNA
|
|
|
|
{
|
|
|
|
DECL_DNA
|
|
|
|
Value<atUint32> weightCount;
|
|
|
|
struct Weight : BigDNA
|
|
|
|
{
|
|
|
|
DECL_DNA
|
|
|
|
Value<atUint32> boneId;
|
|
|
|
Value<float> weight;
|
|
|
|
};
|
|
|
|
Vector<Weight, DNA_COUNT(weightCount)> weights;
|
|
|
|
Value<atUint32> vertCount;
|
|
|
|
};
|
|
|
|
Vector<SkinningRule, 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_
|