summaryrefslogtreecommitdiff
path: root/gfx/models
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-03-19 23:31:17 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-03-19 23:31:17 +0000
commitc3617a13b6e4d9fb50d32478c68fae94be1b2cba (patch)
tree5b52f9b645e379e5bcf2a744193b8e30266dc73b /gfx/models
parentMake Vertex aggregrate constructor conditional on requirement (diff)
downloadilt-c3617a13b6e4d9fb50d32478c68fae94be1b2cba.tar.bz2
ilt-c3617a13b6e4d9fb50d32478c68fae94be1b2cba.tar.xz
ilt-c3617a13b6e4d9fb50d32478c68fae94be1b2cba.zip
Add defaulted Vertex equality operator
Diffstat (limited to 'gfx/models')
-rw-r--r--gfx/models/vertex.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gfx/models/vertex.hpp b/gfx/models/vertex.hpp
index 28dc8f3..64ec3d0 100644
--- a/gfx/models/vertex.hpp
+++ b/gfx/models/vertex.hpp
@@ -11,6 +11,8 @@ public:
}
#endif
+ bool operator==(const Vertex &) const = default;
+
glm::vec3 pos;
glm::vec2 texCoord;
glm::vec3 normal;