diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-01-03 15:55:56 -0500 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-01-03 15:55:56 -0500 |
| commit | ea78ea5f5c15361be7d29ab8fd712b46b916e4e3 (patch) | |
| tree | 08f255cf389aad5edd2106f0e5305a7c62ed6e06 /include/JSystem/J3DGraphBase | |
| parent | a811016a06474be74aaf933c8e267c1ff81bc9de (diff) | |
d_a_player_main
Diffstat (limited to 'include/JSystem/J3DGraphBase')
| -rw-r--r-- | include/JSystem/J3DGraphBase/J3DMaterial.h | 47 | ||||
| -rw-r--r-- | include/JSystem/J3DGraphBase/J3DTexture.h | 10 |
2 files changed, 41 insertions, 16 deletions
diff --git a/include/JSystem/J3DGraphBase/J3DMaterial.h b/include/JSystem/J3DGraphBase/J3DMaterial.h index 669d1004..c325f3ea 100644 --- a/include/JSystem/J3DGraphBase/J3DMaterial.h +++ b/include/JSystem/J3DGraphBase/J3DMaterial.h @@ -44,27 +44,26 @@ public: J3DMaterial() { initialize(); } ~J3DMaterial() {} - J3DMaterial* getNext() const { return mNext; } + J3DMaterial* getNext() { return mNext; } void setNext(J3DMaterial* material) {mNext = material; } - J3DShape* getShape() const { return mShape; } - u32 getMaterialMode() { return mMaterialMode; } - void setMaterialMode(u32 mode) { mMaterialMode = mode; } - J3DTevBlock* getTevBlock() const { return mTevBlock; } - J3DColorBlock* getColorBlock() const { return mColorBlock; } - J3DTexGenBlock* getTexGenBlock() const { return mTexGenBlock; } - J3DDisplayListObj* getSharedDisplayListObj() const { return mSharedDLObj; } - J3DIndBlock* getIndBlock() const { return mIndBlock; } J3DShape* getShape() { return mShape; } J3DJoint* getJoint() { return mJoint; } - J3DMaterialAnm* getMaterialAnm() const { + u32 getMaterialMode() { return mMaterialMode; } + void setMaterialMode(u32 mode) { mMaterialMode = mode; } + J3DTevBlock* getTevBlock() { return mTevBlock; } + J3DColorBlock* getColorBlock() { return mColorBlock; } + J3DTexGenBlock* getTexGenBlock() { return mTexGenBlock; } + J3DDisplayListObj* getSharedDisplayListObj() { return mSharedDLObj; } + J3DIndBlock* getIndBlock() { return mIndBlock; } + J3DMaterialAnm* getMaterialAnm() { if ((u32)mMaterialAnm < 0xC0000000) { return mMaterialAnm; } else { return NULL; } } - J3DNBTScale* getNBTScale() const { return mTexGenBlock->getNBTScale(); } - u16 getTexNo(u32 idx) const { return mTevBlock->getTexNo(idx); } + J3DNBTScale* getNBTScale() { return mTexGenBlock->getNBTScale(); } + u16 getTexNo(u32 idx) { return mTevBlock->getTexNo(idx); } J3DGXColor* getTevKColor(u32 param_0) { return mTevBlock->getTevKColor(param_0); } J3DGXColorS10* getTevColor(u32 param_0) { return mTevBlock->getTevColor(param_0); } J3DFog* getFog() { return mPEBlock->getFog(); } @@ -73,6 +72,8 @@ public: J3DAlphaComp* getAlphaComp() { return mPEBlock->getAlphaComp(); } u8 getZCompLoc() { return mPEBlock->getZCompLoc(); } J3DTexMtx* getTexMtx(u32 idx) { return mTexGenBlock->getTexMtx(idx); } + void setTexMtx(u32 idx, J3DTexMtx* texMtx) { mTexGenBlock->setTexMtx(idx, texMtx); } + J3DTexCoord* getTexCoord(u32 idx) { return mTexGenBlock->getTexCoord(idx); } u16 getIndex() { return mIndex; } bool isDrawModeOpaTexEdge() { return (mMaterialMode & 3) == 0; } J3DPEBlock* getPEBlock() { return mPEBlock; } @@ -87,6 +88,28 @@ public: void setMaterialAnm(J3DMaterialAnm* i_anm) { mMaterialAnm = i_anm; } void setCullMode(u8 i_mode) { mColorBlock->setCullMode(i_mode); } + void addShape(J3DShape*) {} + void getAmbColor(u32) {} + void getColorChan(u32) {} + void getColorChanNum() const {} + void getCullMode() const {} + void getCurrentMtx() const {} + void getDither() const {} + void getIndTevStage(u32) {} + void getIndTexCoordScale(u32) {} + void getIndTexOrder(u32) {} + void getLight(u32) {} + void getMatColor(u32) {} + void getTevKAlphaSel(u32) {} + void getTevKColorSel(u32) {} + void getTevOrder(u32) {} + void getTevStage(u32) {} + void getTevSwapModeTable(u32) {} + void getZCompLoc() const {} + void setJoint(J3DJoint*) {} + void setLight(u32, J3DLightObj*) {} + void setTevStageNum(u8) {} + public: /* 0x04 */ J3DMaterial* mNext; /* 0x08 */ J3DShape* mShape; diff --git a/include/JSystem/J3DGraphBase/J3DTexture.h b/include/JSystem/J3DGraphBase/J3DTexture.h index 3eafd0e9..594cbd16 100644 --- a/include/JSystem/J3DGraphBase/J3DTexture.h +++ b/include/JSystem/J3DGraphBase/J3DTexture.h @@ -57,9 +57,9 @@ public: mTexMtxInfo = info; } ~J3DTexMtx() {} - void load(u32 i) const { + void load(u32 texMtxID) const { GDOverflowCheck(53); - J3DGDLoadTexMtxImm((Mtx&)mMtx, i * 3 + 30, (GXTexMtxType)mTexMtxInfo.mProjection); + J3DGDLoadTexMtxImm((Mtx&)mMtx, GX_TEXMTX0 + texMtxID * 3, (GXTexMtxType)mTexMtxInfo.mProjection); }; void calc(); void calcTexMtx(f32 const (*)[4]); @@ -71,13 +71,15 @@ public: Mtx& getMtx() { return mMtx; } void setEffectMtx(Mtx effectMtx) { mTexMtxInfo.setEffectMtx(effectMtx); } Mtx& getViewMtx() { return mViewMtx; } - void setViewMtx(const Mtx viewMtx) { MTXCopy(viewMtx, mViewMtx); } + void setViewMtx(Mtx viewMtx) { MTXCopy(viewMtx, mViewMtx); } + + void getTextureSRT() {} private: /* 0x00 */ J3DTexMtxInfo mTexMtxInfo; /* 0x64 */ Mtx mMtx; /* 0x94 */ Mtx mViewMtx; -}; // Size: 0xc4 +}; // Size: 0xC4 struct J3DTexCoord : public J3DTexCoordInfo { J3DTexCoord() { *(J3DTexCoordInfo*)this = j3dDefaultTexCoordInfo[0]; } |
