mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Cleanup, add scanline mask builder
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user