SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
ModelUtil.hpp
1#pragma once
2
3#include <revolution.h>
4#include "JSystem/JGeometry/TBox.hpp"
5#include "JSystem/J3DGraphAnimator/J3DModelData.hpp"
6
7class J3DModel;
8class J3DMaterial;
9class LiveActor;
10
11namespace MR {
12 bool isExistModel(const char *);
13
14 J3DModel* getJ3DModel(const LiveActor *);
15 J3DModelData* getJ3DModelData(const LiveActor *);
16 J3DModelData* getJ3DModelData(const char *);
17
18 void calcJ3DModel(LiveActor *);
19
20 u32 getMaterialNo(J3DModelData *, const char *);
21 u32 getMaterialNo(J3DModel *, const char *);
22 J3DMaterial* getMaterial(J3DModelData *, const char *);
23 J3DMaterial* getMaterial(J3DModelData *, int);
24 J3DMaterial* getMaterial(J3DModel *, int);
25 J3DMaterial* getMaterial(const LiveActor *, int);
26 u16 getMaterialNum(J3DModel *);
27 const char* getMaterialName(const J3DModelData *, int);
28 void updateModelDiffDL(LiveActor *);
29 bool isEnvelope(J3DMaterial *);
30 void hideMaterial(J3DModel *, const char *);
31
32 void showMaterial(const LiveActor *, const char *);
33 void hideMaterial(const LiveActor *, const char *);
34
35 void updateMaterial(LiveActor *);
36
37 void syncJointAnimation(LiveActor *, const LiveActor *);
38
39 void syncMaterialAnimation(LiveActor *, const LiveActor *);
40
41 void copyJointAnimation(LiveActor *, const LiveActor *);
42
43 void calcModelBoundingBox(TBox3f *, const LiveActor *);
44
45 void calcModelBoundingRadius(f32 *, const LiveActor *);
46
47 bool isExistCollisionResource(const LiveActor *, const char *);
48
49 bool isExistEffectTexMtx(LiveActor *);
50
51 s16 getBckFrameMax(const LiveActor *, const char *);
52};
The basis of a drawable actor that can contain states (see: Nerve)
Definition LiveActor.hpp:24