summaryrefslogtreecommitdiff
path: root/include/JSystem/J3DGraphBase/J3DPacket.h
diff options
context:
space:
mode:
authorTal Hayon <talhayon1@gmail.com>2023-07-09 20:21:18 +0300
committerTal Hayon <talhayon1@gmail.com>2023-07-09 20:21:18 +0300
commite00ce8bc31ce57f3aeff7c4844ffa926fa08e95f (patch)
tree97873da548ff40005e563245aa002e9fc0117f9f /include/JSystem/J3DGraphBase/J3DPacket.h
parentcf26cd610d4e88f391c7d854b5da5b7460d130c5 (diff)
Work on J3DMaterial
Diffstat (limited to 'include/JSystem/J3DGraphBase/J3DPacket.h')
-rw-r--r--include/JSystem/J3DGraphBase/J3DPacket.h4
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*);