diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-07-12 10:36:30 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-07-12 10:36:30 -0400 |
| commit | 33c6922ae8ee6084e4d501cb456293a5bd1a1979 (patch) | |
| tree | ad758ab9c384b11c0197a77bcdfc85cadc628c7a /include/JSystem/J3DGraphBase | |
| parent | a597a1902bf49a9da6f4edcbb8926d2f6ce5d425 (diff) | |
small fixes
Diffstat (limited to 'include/JSystem/J3DGraphBase')
| -rw-r--r-- | include/JSystem/J3DGraphBase/J3DMatBlock.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/JSystem/J3DGraphBase/J3DMatBlock.h b/include/JSystem/J3DGraphBase/J3DMatBlock.h index 49e13674..7ea5b46e 100644 --- a/include/JSystem/J3DGraphBase/J3DMatBlock.h +++ b/include/JSystem/J3DGraphBase/J3DMatBlock.h @@ -593,14 +593,15 @@ struct J3DZMode { struct J3DBlend : public J3DBlendInfo { J3DBlend() { *(J3DBlendInfo*)this = j3dDefaultBlendInfo; } explicit J3DBlend(const J3DBlendInfo& info) { *(J3DBlendInfo*)this = info; } + void setBlendInfo(const J3DBlendInfo& info) { *(J3DBlendInfo*)this = info; } GXBlendMode getType() const { return (GXBlendMode)mBlendMode; } GXBlendFactor getSrcFactor() const { return (GXBlendFactor)mSrcFactor; } GXBlendFactor getDstFactor() const { return (GXBlendFactor)mDstFactor; } - GXLogicOp getLogicOp() const { return (GXLogicOp)mLogicOp; } + GXLogicOp getOp() const { return (GXLogicOp)mLogicOp; } void load(u8 ditherEnable) { - J3DGDSetBlendMode(getType(), getSrcFactor(), getDstFactor(), getLogicOp(), ditherEnable); + J3DGDSetBlendMode(getType(), getSrcFactor(), getDstFactor(), getOp(), ditherEnable); } void setType(u8 i_type) { @@ -615,10 +616,8 @@ struct J3DBlend : public J3DBlendInfo { mDstFactor = i_dst; } - void getOp() const {} // void operator=(const J3DBlend&) {} // void operator==(J3DBlend&) {} - void setBlendInfo(const J3DBlendInfo&) {} }; extern const J3DFogInfo j3dDefaultFogInfo; |
