Cleanup, add scanline mask builder

This commit is contained in:
elasota
2019-12-26 12:58:58 -05:00
parent b10dda4a54
commit c4e93b0ccf
61 changed files with 823 additions and 494 deletions

View File

@@ -17,7 +17,10 @@ namespace PortabilityLayer
Vec2i operator-(const Vec2i &other) const;
Vec2i &operator+=(const Vec2i &other);
Vec2i &operator-=(const Vec2i &other);
Vec2i &operator-=(const Vec2i &other);
bool operator==(const Vec2i &other) const;
bool operator!=(const Vec2i &other) const;
};
inline Vec2i::Vec2i()
@@ -60,6 +63,15 @@ namespace PortabilityLayer
m_x -= other.m_x;
m_y -= other.m_y;
return *this;
}
inline bool Vec2i::operator==(const Vec2i &other) const
{
return m_x == other.m_x && m_y == other.m_y;
}
inline bool Vec2i::operator!=(const Vec2i &other) const
{
return !((*this) == other);
}
}