CGX: Add operator!= for GXColor

This commit is contained in:
Luke Street 2022-08-29 12:44:40 -04:00
parent bc6cd8627b
commit 51d8b90929
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@ constexpr GXColor GX_CLEAR{0, 0, 0, 0};
inline bool operator==(const GXColor& lhs, const GXColor& rhs) noexcept {
return lhs.r == rhs.r && lhs.g == rhs.g && lhs.b == rhs.b && lhs.a == rhs.a;
}
inline bool operator!=(const GXColor& lhs, const GXColor& rhs) noexcept {
return !(lhs == rhs);
}
static inline void GXPosition3f32(const zeus::CVector3f& v) { GXPosition3f32(v.x(), v.y(), v.z()); }
static inline void GXNormal3f32(const zeus::CVector3f& v) { GXNormal3f32(v.x(), v.y(), v.z()); }