void compare(Predicate);
};
- bool enabled;
- Predicate compare;
- bool write;
+ bool enabled = false;
+ Predicate compare = LESS;
+ bool write = true;
- DepthTest();
+ DepthTest() = default;
DepthTest(Predicate, bool = true);
+
+ bool operator==(const DepthTest &) const;
+ bool operator!=(const DepthTest &d) const { return !operator==(d); }
};
+inline bool DepthTest::operator==(const DepthTest &other) const
+{
+ return enabled==other.enabled && compare==other.compare && write==other.write;
+}
+
} // namespace GL
} // namespace Msp