Cleaned up some graphics code.

This commit is contained in:
Alex Szpakowski
2015-01-24 03:39:05 -04:00
parent e71c15e650
commit b876255442
4 changed files with 41 additions and 33 deletions
+18
View File
@@ -148,6 +148,24 @@ public:
size_t textureMemory;
};
struct ColorMask
{
bool r;
bool g;
bool b;
bool a;
bool operator == (const ColorMask &m) const
{
return r == m.r && g == m.g && b == m.b && a == m.a;
}
bool operator != (const ColorMask &m) const
{
return !(operator == (m));
}
};
virtual ~Graphics();
// Implements Module.