diff options
author | Treeki <treeki@gmail.com> | 2012-08-28 03:51:38 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-08-28 03:51:38 +0200 |
commit | 80a9d3f3ab5a08447bbbde669e7a077ffc3f1178 (patch) | |
tree | 6716124d4343837b896c5e0bf9fea161e4864ace /include/g3dhax.h | |
parent | f65f7b8050e2922900dcbebada6ca5ee875873f7 (diff) | |
download | kamek-80a9d3f3ab5a08447bbbde669e7a077ffc3f1178.tar.gz kamek-80a9d3f3ab5a08447bbbde669e7a077ffc3f1178.zip |
some header file changes/fixes
Diffstat (limited to '')
-rw-r--r-- | include/g3dhax.h | 17 |
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 |