mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-11 14:38:38 -04:00
small fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user