diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2026-08-28 14:53:14 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2026-08-28 14:53:14 -0400 |
| commit | 60a05bdb832864d09f5d4c74ffcfd928026d884f (patch) | |
| tree | 22aa13ef975edf882823557baf50e8c959e498b2 /include/JSystem/J3DGraphBase | |
| parent | 9234aa8286bcbcb9f69de7adb3125aff25076278 (diff) | |
Fix J3DGXColor ctors for clang
Diffstat (limited to 'include/JSystem/J3DGraphBase')
| -rw-r--r-- | include/JSystem/J3DGraphBase/J3DMatBlock.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/JSystem/J3DGraphBase/J3DMatBlock.h b/include/JSystem/J3DGraphBase/J3DMatBlock.h index c8963437..0371d2ba 100644 --- a/include/JSystem/J3DGraphBase/J3DMatBlock.h +++ b/include/JSystem/J3DGraphBase/J3DMatBlock.h @@ -15,12 +15,21 @@ struct J3DGXColorS10 { mColor.b = other.b; mColor.a = other.a; } +#if __MWERKS__ J3DGXColorS10(J3DGXColorS10& other) { mColor.r = other.mColor.r; mColor.g = other.mColor.g; mColor.b = other.mColor.b; mColor.a = other.mColor.a; } +#else + J3DGXColorS10(const J3DGXColorS10& other) { + mColor.r = other.mColor.r; + mColor.g = other.mColor.g; + mColor.b = other.mColor.b; + mColor.a = other.mColor.a; + } +#endif J3DGXColorS10& operator=(const J3DGXColorS10& other) { mColor = other.mColor; return *this; @@ -41,12 +50,21 @@ struct J3DGXColor { mColor.b = other.b; mColor.a = other.a; } +#if __MWERKS__ J3DGXColor(J3DGXColor& other) { mColor.r = other.mColor.r; mColor.g = other.mColor.g; mColor.b = other.mColor.b; mColor.a = other.mColor.a; } +#else + J3DGXColor(const J3DGXColor& other) { + mColor.r = other.mColor.r; + mColor.g = other.mColor.g; + mColor.b = other.mColor.b; + mColor.a = other.mColor.a; + } +#endif J3DGXColor& operator=(const J3DGXColor& other) { mColor = other.mColor; return *this; |
