From f683c2bfc49dfd06a035fbc5d20f7ef1334bcb5e Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Sun, 7 Jan 2024 03:29:50 -0500 Subject: mDoGph_Painter fixed --- include/JSystem/J3DGraphBase/J3DDrawBuffer.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'include/JSystem/J3DGraphBase') diff --git a/include/JSystem/J3DGraphBase/J3DDrawBuffer.h b/include/JSystem/J3DGraphBase/J3DDrawBuffer.h index 47752c82..e7b16d68 100644 --- a/include/JSystem/J3DGraphBase/J3DDrawBuffer.h +++ b/include/JSystem/J3DGraphBase/J3DDrawBuffer.h @@ -46,15 +46,19 @@ public: void draw() const; void drawHead() const; void drawTail() const; + void setCallBackPacket(J3DCallBackPacket* pPacket); - u32 getEntryTableSize() { return mBufSize; } - - inline void calcZRatio(); + J3DPacket* getEntryPacket(u16 i) { return mpBuf[i]; } + u32 getEntryTableSize() { return mBufSize; } // Unused in TWW, but exists in TP void setNonSort() { mSortType = (u32)SORT_NON; } void setZSort() { mSortType = (u32)SORT_Z; } void setInvalidSort() { mSortType = (u32)SORT_INVALID; } void setZMtx(MtxP mtx) { mpZMtx = mtx; } - void setCallBackPacket(J3DCallBackPacket* pPacket); + void calcZRatio() { + mZRatio = (mZFar - mZNear) / (f32)mBufSize; + } + + void getSortMode() {} public: /* 0x00 */ J3DPacket** mpBuf; -- cgit v1.2.3