From 69dc7cbbf15ece9533ca6afc85f9500ba1b2647b Mon Sep 17 00:00:00 2001 From: Caroline Madsen <69010899+randomsalience@users.noreply.github.com> Date: Sat, 19 Oct 2024 04:54:40 -0400 Subject: d_a_b_yo and d_a_b_yo_ice mostly OK (#2219) --- include/JSystem/J3DGraphBase/J3DMatBlock.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/JSystem/J3DGraphBase') diff --git a/include/JSystem/J3DGraphBase/J3DMatBlock.h b/include/JSystem/J3DGraphBase/J3DMatBlock.h index 9f149bf4a7..18e7c7ec19 100644 --- a/include/JSystem/J3DGraphBase/J3DMatBlock.h +++ b/include/JSystem/J3DGraphBase/J3DMatBlock.h @@ -654,6 +654,10 @@ struct J3DZMode { mZModeID = calcZModeID(i_compare, j3dZModeTable[mZModeID * 3 + 1], j3dZModeTable[mZModeID * 3 + 2]); } + void setFunc(u8 i_func) { + mZModeID = calcZModeID(j3dZModeTable[mZModeID * 3], i_func, j3dZModeTable[mZModeID * 3 + 2]); + } + void setUpdateEnable(u8 i_enable) { mZModeID = calcZModeID(j3dZModeTable[mZModeID * 3], j3dZModeTable[mZModeID * 3 + 1], i_enable); } @@ -693,6 +697,7 @@ struct J3DBlend : public J3DBlendInfo { J3DBlend() : J3DBlendInfo(j3dDefaultBlendInfo) {} J3DBlend(J3DBlendInfo const& info) : J3DBlendInfo(info) {} + void setType(u8 i_type) { mType = i_type; } void setDstFactor(u8 i_factor) { mDstFactor = i_factor; } GXBlendMode getBlendMode() const { return (GXBlendMode)mType; } -- cgit v1.2.3