diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-01-07 03:29:50 -0500 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-01-07 03:29:50 -0500 |
| commit | f683c2bfc49dfd06a035fbc5d20f7ef1334bcb5e (patch) | |
| tree | 73152ad87af9eb8665a78f5edaa0b22648327660 /include/JSystem/J3DGraphBase | |
| parent | 6ec8c7029532695c192233473b8e26ca58c1537e (diff) | |
mDoGph_Painter fixed
Diffstat (limited to 'include/JSystem/J3DGraphBase')
| -rw-r--r-- | include/JSystem/J3DGraphBase/J3DDrawBuffer.h | 12 |
1 files changed, 8 insertions, 4 deletions
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; |
