diff options
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; |
