summaryrefslogtreecommitdiff
path: root/include/JSystem/J3DGraphLoader
diff options
context:
space:
mode:
authorhatal175 <hatal175@users.noreply.github.com>2024-02-05 07:21:05 +0200
committerGitHub <noreply@github.com>2024-02-05 07:21:05 +0200
commite98d9c845c3476b3060a4bada25ced6a736835de (patch)
treeaaf7910e6632ef5d7be7629e74f883014eb577c3 /include/JSystem/J3DGraphLoader
parentf260221f4300df6f72aecc80b6140e4454ff57a8 (diff)
Fix some JSUConvertOffsetToPtr issues (#2063)
* Fix some JSUConvertOffsetToPtr issues * Match some J3DAnmLoader functions
Diffstat (limited to 'include/JSystem/J3DGraphLoader')
-rw-r--r--include/JSystem/J3DGraphLoader/J3DClusterLoader.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/include/JSystem/J3DGraphLoader/J3DClusterLoader.h b/include/JSystem/J3DGraphLoader/J3DClusterLoader.h
index 35a79ddbb3..fa8acfb998 100644
--- a/include/JSystem/J3DGraphLoader/J3DClusterLoader.h
+++ b/include/JSystem/J3DGraphLoader/J3DClusterLoader.h
@@ -1,9 +1,46 @@
#ifndef J3DCLUSTERLOADER_H
#define J3DCLUSTERLOADER_H
+#include "dolphin/types.h"
+#include "JSystem/J3DGraphAnimator/J3DAnimation.h"
struct J3DClusterLoaderDataBase {
/* 80334130 */ static void* load(void const*);
};
+class J3DClusterBlock : public JUTDataBlockHeader {
+public:
+ /* 0x08 */ u16 mClusterNum;
+ /* 0x0A */ u16 mClusterKeyNum;
+ /* 0x0C */ u16 mClusterVertexNum;
+ /* 0x0E */ u16 mVtxPosNum;
+ /* 0x10 */ u16 mVtxNrmNum;
+ /* 0x14 */ void* mClusterPointer;
+ /* 0x18 */ void* mClusterKeyPointer;
+ /* 0x1C */ void* mClusterVertex;
+ /* 0x20 */ void* mVtxPos;
+ /* 0x24 */ void* mVtxNrm;
+ /* 0x28 */ void* mClusterName;
+ /* 0x2C */ void* mClusterKeyName;
+};
+
+class J3DClusterLoader {
+public:
+ virtual void* load(const void*) = 0;
+ /* 803345FC */ virtual ~J3DClusterLoader() {}
+};
+
+class J3DDeformData;
+
+class J3DClusterLoader_v15 : public J3DClusterLoader {
+public:
+ /* 803341CC */ J3DClusterLoader_v15();
+ /* 803342F8 */ void readCluster(J3DClusterBlock const*);
+
+ /* 80334244 */ virtual void* load(void const*);
+ /* 803341E8 */ virtual ~J3DClusterLoader_v15();
+
+ /* 0x04 */ J3DDeformData* mpDeformData;
+};
+
#endif /* J3DCLUSTERLOADER_H */