mirror of
https://github.com/zeldaret/tp
synced 2026-08-21 22:41:04 -04:00
J3DShape: OK progress
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user