chore: update xmodel common to be a struct with substructs

This commit is contained in:
Jan
2024-04-02 21:34:51 +02:00
parent 0a65c93aa5
commit 826e59d627
13 changed files with 413 additions and 451 deletions

View File

@ -3,8 +3,8 @@
#include "Math/Quaternion.h"
#include "Utils/DistinctMapper.h"
#include <memory>
#include <string>
#include <vector>
struct XModelObject
{
@ -31,8 +31,7 @@ struct XModelBoneWeight
struct XModelVertexBoneWeightCollection
{
std::unique_ptr<XModelBoneWeight[]> weights;
size_t totalWeightCount;
std::vector<XModelBoneWeight> weights;
};
struct XModelVertexBoneWeights
@ -93,6 +92,17 @@ struct XModelMaterial
void ApplyDefaults();
};
struct XModelCommon
{
std::vector<XModelObject> m_objects;
std::vector<XModelBone> m_bones;
std::vector<XModelMaterial> m_materials;
std::vector<XModelVertex> m_vertices;
std::vector<XModelVertexBoneWeights> m_vertex_bone_weights;
std::vector<XModelFace> m_faces;
XModelVertexBoneWeightCollection m_bone_weight_data;
};
struct VertexMergerPos
{
float x;