diff options
| author | Tal Hayon <talhayon1@gmail.com> | 2023-07-09 20:21:18 +0300 |
|---|---|---|
| committer | Tal Hayon <talhayon1@gmail.com> | 2023-07-09 20:21:18 +0300 |
| commit | e00ce8bc31ce57f3aeff7c4844ffa926fa08e95f (patch) | |
| tree | 97873da548ff40005e563245aa002e9fc0117f9f /include/JSystem/J3DGraphBase/J3DPacket.h | |
| parent | cf26cd610d4e88f391c7d854b5da5b7460d130c5 (diff) | |
Work on J3DMaterial
Diffstat (limited to 'include/JSystem/J3DGraphBase/J3DPacket.h')
| -rw-r--r-- | include/JSystem/J3DGraphBase/J3DPacket.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/JSystem/J3DGraphBase/J3DPacket.h b/include/JSystem/J3DGraphBase/J3DPacket.h index 790e734825..0b80f6b50b 100644 --- a/include/JSystem/J3DGraphBase/J3DPacket.h +++ b/include/JSystem/J3DGraphBase/J3DPacket.h @@ -90,6 +90,9 @@ public: J3DDisplayListObj* getDisplayListObj() const { return mpDisplayListObj; } void setDisplayListObj(J3DDisplayListObj* pObj) { mpDisplayListObj = pObj; } + void beginPatch() { mpDisplayListObj->beginPatch(); } + void endPatch() { mpDisplayListObj->endPatch(); } + void callDL() const { getDisplayListObj()->callDL(); } enum { @@ -153,6 +156,7 @@ public: void setInitShapePacket(J3DShapePacket* packet) { mpInitShapePacket = packet; } void setMaterialAnmID(J3DMaterialAnm* materialAnm) { mpMaterialAnm = materialAnm; } bool isChanged() const { return mDiffFlag & 0x80000000; } + bool isEnabled_Diff() const { return mpInitShapePacket->getDisplayListObj() != NULL; } virtual ~J3DMatPacket(); virtual int entry(J3DDrawBuffer*); |
