Attempt to decompile modelRenderNodeGunfire

This commit is contained in:
Ryan Dwyer
2021-05-06 17:48:37 +10:00
parent 7906a0d6a9
commit f86d5cb972
7 changed files with 175 additions and 16 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ extern f32 g_ModelDistanceScale;
extern bool var8005efbc;
extern u32 var8005efc0;
extern bool (*var8005efc4)(struct model *model, struct modelnode *node);
extern void *var8005efc8;
extern struct gfxvtx *(*g_ModelVtxAllocatorFunc)(s32 numvertices);
extern void *var8005efcc;
extern u32 var8005efd0;
extern bool var8005efdc;
+1 -1
View File
@@ -64,7 +64,7 @@ u32 func0f02c9b0(void);
void chrSetDrCarollImages(struct chrdata *drcaroll, s32 imageleft, s32 imageright);
s32 getNumChrSlots(void);
void chrRegister(s32 chrnum, s32 chrindex);
void func0f01e760(s32 arg0);
struct gfxvtx *chrAllocateVertices(s32 numvertices);
void setVar8006297c(u32 arg0);
u32 getVar8006297c(void);
void setVar80062980(u32 arg0);
+2 -2
View File
@@ -5,7 +5,7 @@
#include "types.h"
void modelSetDistanceScale(f32 value);
void func0001a518(void *callback);
void modelSetVtxAllocatorFunc(struct gfxvtx *(*fn)(s32 numvertices));
s32 func0001a524(struct modelnode *node, s32 arg1);
Mtxf *func0001a5cc(struct model *model, struct modelnode *node, s32 arg2);
Mtxf *func0001a60c(struct model *model);
@@ -86,7 +86,7 @@ void modelApplyCullMode(struct modelrenderdata *renderdata);
void modelRenderNodeGundl(struct modelrenderdata *renderdata, struct model *model, struct modelnode *node);
void modelRenderNodeDl(struct modelrenderdata *renderdata, struct model *model, struct modelnode *node);
void modelRenderNodeType16(struct modelrenderdata *renderdata, struct modelnode *node);
u32 func000216cc(void);
void func000216cc(struct modelrenderdata *renderdata, struct modeltexture *texture, s32 arg2);
void modelRenderNodeGunfire(struct modelrenderdata *renderdata, struct model *model, struct modelnode *node);
void modelRender(struct modelrenderdata *renderdata, struct model *model);
bool func000220fc(union modelrodata *rodata, Mtxf *mtx, struct coord *arg2, struct coord *arg3);
+7 -2
View File
@@ -595,7 +595,7 @@ struct modelrodata_type0b { // type 0x0b
struct modelrodata_gunfire { // type 0x0c
struct coord pos;
struct coord dim;
void *texture;
struct modeltexture *texture;
f32 unk1c;
u16 rwdataindex;
void *baseaddr;
@@ -746,7 +746,7 @@ struct modelrwdata_0b { // type 0x0b
};
struct modelrwdata_gunfire { // type 0x0c
u16 visible;
s16 visible;
u16 unk02;
};
@@ -7123,4 +7123,9 @@ struct rdptask {
u32 unk5c;
};
struct modeltexture {
u32 unk00;
u8 unk04;
};
#endif