J3DVertex almost

This commit is contained in:
Jasper St. Pierre
2023-09-12 20:16:11 -07:00
parent d3b4092523
commit c0d02ccfcf
7 changed files with 215 additions and 25 deletions
+2
View File
@@ -179,9 +179,11 @@ public:
void setModel(J3DModel* pModel) { mpModel = pModel; }
void setDrawMtx(Mtx** pDrawMtx) { mpDrawMtx = pDrawMtx; }
void setNrmMtx(Mtx33** pNrmMtx) { mpNrmMtx = pNrmMtx; }
void setBaseMtxPtr(Mtx* pMtx) { mpBaseMtxPtr = pMtx; }
J3DShape* getShape() const { return mpShape; }
J3DModel* getModel() const { return mpModel; }
Mtx* getBaseMtxPtr() const { return mpBaseMtxPtr; }
public:
/* 0x24 */ J3DShape* mpShape;
+1
View File
@@ -121,6 +121,7 @@ public:
static void resetVcdVatCache() { sOldVcdVatCmd = NULL; }
static void* sOldVcdVatCmd;
static u8 sEnvelopeFlag;
private:
friend struct J3DShapeFactory;
@@ -54,6 +54,7 @@ public:
static u32 sCurrentPipeline;
// static J3DScaleFlag sCurrentScaleFlag;
static u8* sCurrentScaleFlag;
static u8 sNBTFlag;
static u32 sTexMtxLoadType;
static void setCurrentPipeline(u32 pipeline) { sCurrentPipeline = pipeline; }
+3 -3
View File
@@ -53,11 +53,11 @@ private:
/* 0x1C */ void* mVtxNBTArray;
/* 0x20 */ GXColor* mVtxColorArray[2];
/* 0x28 */ void* mVtxTexCoordArray[8];
/* 0x48 */ u8 mPacketNum;
/* 0x48 */ u8 mVtxPosFrac;
/* 0x4C */ GXCompType mVtxPosType;
/* 0x50 */ u8 mVtxPosFrac;
/* 0x50 */ u8 mVtxNrmFrac;
/* 0x54 */ GXCompType mVtxNrmType;
/* 0x58 */ u8 mVtxNrmFrac;
/* 0x58 */ u32 mPacketNum;
};
class J3DVertexBuffer {