worked on 3D walls

This commit is contained in:
k-a-z-u
2018-07-24 18:08:08 +02:00
parent 3d79fd5af0
commit f7e4323d58
11 changed files with 261 additions and 49 deletions

View File

@@ -85,6 +85,7 @@ inline void swap(Point2& p1, Point2& p2) {
}
namespace std {
template <> struct hash<Point2> {
std::size_t operator()(const Point2& p) const {
uint32_t x = *((uint32_t*)&(p.x));
@@ -92,6 +93,7 @@ namespace std {
return std::hash<uint32_t>()(x^y);
}
};
}
#endif // POINT2_H