summaryrefslogtreecommitdiff
path: root/gfx/models
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-03-19 23:30:02 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-03-19 23:30:02 +0000
commit997e03433fd41ad2ba1dc4242ff5a90f55ce694d (patch)
tree8c125dcfba1bc6ebf91c88104b4d8455d4ab2dca /gfx/models
parentAdd aggregrate constructor to TexturePacker::Area as required (diff)
downloadilt-997e03433fd41ad2ba1dc4242ff5a90f55ce694d.tar.bz2
ilt-997e03433fd41ad2ba1dc4242ff5a90f55ce694d.tar.xz
ilt-997e03433fd41ad2ba1dc4242ff5a90f55ce694d.zip
Make Vertex aggregrate constructor conditional on requirement
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 325aab1..28dc8f3 100644
--- a/gfx/models/vertex.hpp
+++ b/gfx/models/vertex.hpp
@@ -4,10 +4,12 @@
class Vertex {
public:
+#ifndef __cpp_aggregate_paren_init
constexpr Vertex(glm::vec3 pos, glm::vec2 texCoord, glm::vec3 normal, glm::vec4 colour = {}) :
pos {std::move(pos)}, texCoord {std::move(texCoord)}, normal {std::move(normal)}, colour {std::move(colour)}
{
}
+#endif
glm::vec3 pos;
glm::vec2 texCoord;