mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-09-10 11:45:12 -04:00
Set names for modelrenderdata properties
This commit is contained in:
@@ -2589,6 +2589,20 @@
|
||||
|
||||
#define MODELRENDERFLAG_OPA 1
|
||||
#define MODELRENDERFLAG_XLU 2
|
||||
#define MODELRENDERFLAG_DEFAULT (MODELRENDERFLAG_OPA | MODELRENDERFLAG_XLU)
|
||||
|
||||
#define MODELRENDERCONTEXT_MENUMODEL_OPA 1
|
||||
#define MODELRENDERCONTEXT_BONDGUN_OPA 4
|
||||
#define MODELRENDERCONTEXT_BONDGUN_OBJ_XLU 5
|
||||
#define MODELRENDERCONTEXT_CHR_OPA 7
|
||||
#define MODELRENDERCONTEXT_CHR_XLU 8
|
||||
#define MODELRENDERCONTEXT_OBJ_OPA 9
|
||||
|
||||
#define MODELRENDERMODE_0 0 // Not referenced in code, but is referenced in model files
|
||||
#define MODELRENDERMODE_SIMPLE 1 // Texture * shade
|
||||
#define MODELRENDERMODE_TRILERP 2 // Use LOD level to modulate texels from two bilerp tiles
|
||||
#define MODELRENDERMODE_CTXAWARE_1PASS 3 // Different settings based on model type, xlu rendered on same pass as opa
|
||||
#define MODELRENDERMODE_CTXAWARE_2PASS 4 // Different settings based on model type, opa/xlu rendered on different passes
|
||||
|
||||
#define MODFILE_GAME 1
|
||||
#define MODFILE_MPSETUP 2
|
||||
|
||||
+6
-12
@@ -433,7 +433,7 @@ struct modelrodata_gundl { // type 0x04
|
||||
void *baseaddr;
|
||||
Vtx *vertices;
|
||||
s16 numvertices;
|
||||
s16 unk12;
|
||||
s16 rendermode;
|
||||
};
|
||||
|
||||
struct modelrodata_distance { // type 0x08
|
||||
@@ -542,7 +542,7 @@ struct modelrodata_dl { // type 0x18
|
||||
/*0x08*/ Col *colours;
|
||||
/*0x0c*/ Vtx *vertices; // colours follow this array
|
||||
/*0x10*/ s16 numvertices;
|
||||
/*0x12*/ s16 mcount;
|
||||
/*0x12*/ s16 rendermode;
|
||||
/*0x14*/ u16 rwdataindex;
|
||||
/*0x16*/ u16 numcolours;
|
||||
};
|
||||
@@ -5006,19 +5006,13 @@ struct animtableentry {
|
||||
};
|
||||
|
||||
struct modelrenderdata {
|
||||
/*0x00*/ Mtxf *unk00;
|
||||
/*0x00*/ Mtxf *rendermtx;
|
||||
/*0x04*/ bool zbufferenabled;
|
||||
/*0x08*/ u32 flags;
|
||||
/*0x0c*/ Gfx *gdl;
|
||||
/*0x10*/ Mtxf *unk10;
|
||||
/*0x14*/ u32 unk14;
|
||||
/*0x18*/ u32 unk18;
|
||||
/*0x1c*/ u32 unk1c;
|
||||
/*0x20*/ u32 unk20;
|
||||
/*0x24*/ u32 unk24;
|
||||
/*0x28*/ u32 unk28;
|
||||
/*0x2c*/ u32 unk2c;
|
||||
/*0x30*/ s32 unk30;
|
||||
/*0x10*/ Mtxf *matrices;
|
||||
/*0x14*/ u32 unk14[7];
|
||||
/*0x30*/ s32 context;
|
||||
/*0x34*/ u32 envcolour;
|
||||
/*0x38*/ u32 fogcolour;
|
||||
/*0x3c*/ u32 cullmode;
|
||||
|
||||
Reference in New Issue
Block a user