summaryrefslogtreecommitdiff
path: root/include/g3dhax.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/g3dhax.h')
-rw-r--r--include/g3dhax.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/include/g3dhax.h b/include/g3dhax.h
index 551af40..8a2063a 100644
--- a/include/g3dhax.h
+++ b/include/g3dhax.h
@@ -17,6 +17,14 @@ namespace nw4r {
}
};
+ class ResNode {
+ public:
+ void* data;
+ ResNode(void *p = NULL) { data = p; }
+
+ u32 GetID() { return data ? (*((u32*)( ((u32)data) + 0xC ))) : 0; }
+ };
+
class ResMdl {
public:
void * /*ResMdlData*/ data;
@@ -26,6 +34,8 @@ namespace nw4r {
}
void * /*ResMat*/ GetResMat(const char *str) const;
+
+ ResNode GetResNode(const char *str) const;
};
class ResAnmChr { public: void* data; ResAnmChr(void *p = NULL) { data = p; } };
@@ -254,9 +264,12 @@ namespace m3d {
void setScale(Vec *scale);
void calcWorld(bool unk);
+ bool getMatrixForNode(u32 nodeID, MtxPtr matrix); // bmdl_c 801682C0
+
void bindAnim(banm_c *animation, float unk);
- char data[0x3C];
+ void *scnObj;
+ char data[0x38];
};
@@ -437,5 +450,7 @@ void SetupTextures_Enemy(m3d::mdl_c *model, int sceneID); // 800B4170
void SetupTextures_MapObj(m3d::mdl_c *model, int sceneID); // 800B42B0
void SetupTextures_Item(m3d::mdl_c *model, int sceneID); // 800B43D0
+#include <bufferoption.h>
+
#endif