summaryrefslogtreecommitdiff
path: root/include/JSystem/J3DGraphBase
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2023-09-12 20:16:11 -0700
committerJasper St. Pierre <jstpierre@mecheye.net>2023-09-12 20:16:11 -0700
commitc0d02ccfcf9ec93b0d8a427567e1dffd58182da5 (patch)
treecabf8857739bf73af73f37d48cc7b1b77d62be94 /include/JSystem/J3DGraphBase
parentd3b40925239896a0ae41b35b61f0250200dd0ec3 (diff)
J3DVertex almost
Diffstat (limited to 'include/JSystem/J3DGraphBase')
-rw-r--r--include/JSystem/J3DGraphBase/J3DPacket.h2
-rw-r--r--include/JSystem/J3DGraphBase/J3DShape.h1
-rw-r--r--include/JSystem/J3DGraphBase/J3DShapeMtx.h1
-rw-r--r--include/JSystem/J3DGraphBase/J3DVertex.h6
4 files changed, 7 insertions, 3 deletions
diff --git a/include/JSystem/J3DGraphBase/J3DPacket.h b/include/JSystem/J3DGraphBase/J3DPacket.h
index 278fb918..143065ab 100644
--- a/include/JSystem/J3DGraphBase/J3DPacket.h
+++ b/include/JSystem/J3DGraphBase/J3DPacket.h
@@ -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;
diff --git a/include/JSystem/J3DGraphBase/J3DShape.h b/include/JSystem/J3DGraphBase/J3DShape.h
index 457724a8..a1fdf247 100644
--- a/include/JSystem/J3DGraphBase/J3DShape.h
+++ b/include/JSystem/J3DGraphBase/J3DShape.h
@@ -121,6 +121,7 @@ public:
static void resetVcdVatCache() { sOldVcdVatCmd = NULL; }
static void* sOldVcdVatCmd;
+ static u8 sEnvelopeFlag;
private:
friend struct J3DShapeFactory;
diff --git a/include/JSystem/J3DGraphBase/J3DShapeMtx.h b/include/JSystem/J3DGraphBase/J3DShapeMtx.h
index 029e73ec..8c2a29f8 100644
--- a/include/JSystem/J3DGraphBase/J3DShapeMtx.h
+++ b/include/JSystem/J3DGraphBase/J3DShapeMtx.h
@@ -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; }
diff --git a/include/JSystem/J3DGraphBase/J3DVertex.h b/include/JSystem/J3DGraphBase/J3DVertex.h
index ed07b064..5598f491 100644
--- a/include/JSystem/J3DGraphBase/J3DVertex.h
+++ b/include/JSystem/J3DGraphBase/J3DVertex.h
@@ -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 {