J3DShape: OK progress

This commit is contained in:
Jasper St. Pierre
2022-04-23 18:58:35 -07:00
parent d954f9348c
commit 2358fd042d
9 changed files with 68 additions and 105 deletions
+8 -2
View File
@@ -10,8 +10,6 @@ struct GDLObj {
/* 0xC */ u8* end;
}; // Size: 0x10
extern "C" void GDInitGDLObj(GDLObj*, u8*, u32);
extern GDLObj* __GDCurrentDL;
inline void GDSetCurrent(GDLObj* obj) {
@@ -22,4 +20,12 @@ inline u32 GDGetGDLObjOffset(GDLObj* obj) {
return (u32)(obj->ptr - obj->start);
}
extern "C" {
void GDInitGDLObj(GDLObj*, u8*, u32);
void GDFlushCurrToMem();
void GDPadCurr32();
}
#endif /* GDBASE_H */
+9
View File
@@ -2,5 +2,14 @@
#define GDGEOMETRY_H
#include "dolphin/types.h"
#include "dolphin/gx/GX.h"
extern "C" {
void GDSetVtxDescv(GXVtxDescList*);
void GDSetArray(GXAttr attr, const void* data, u8 stride);
void GDSetArrayRaw(GXAttr attr, u32 data, u8 stride);
}
#endif /* GDGEOMETRY_H */
+7
View File
@@ -85,6 +85,13 @@ typedef struct _GXTexRegion {
/* 0x00 */ u8 dummy[0x10];
} GXTexRegion; // Size: 0x10
typedef struct _GXVtxAttrFmtList {
/* 0x00 */ u32 mAttrib; // GXAttr
/* 0x04 */ u32 mCompCnt; // GXCompCnt
/* 0x08 */ u32 mCompType; // GXCompType
/* 0x0C */ u8 mCompShift;
} GXVtxAttrFmtList; // Size: 0x10
typedef enum _GXPrimitive {
/* 0x80 */ GX_QUADS = 0x80,
/* 0x90 */ GX_TRIANGLES = 0x90,