diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-03-19 23:30:02 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-03-19 23:30:02 +0000 |
commit | 997e03433fd41ad2ba1dc4242ff5a90f55ce694d (patch) | |
tree | 8c125dcfba1bc6ebf91c88104b4d8455d4ab2dca /gfx/models/vertex.hpp | |
parent | Add aggregrate constructor to TexturePacker::Area as required (diff) | |
download | ilt-997e03433fd41ad2ba1dc4242ff5a90f55ce694d.tar.bz2 ilt-997e03433fd41ad2ba1dc4242ff5a90f55ce694d.tar.xz ilt-997e03433fd41ad2ba1dc4242ff5a90f55ce694d.zip |
Make Vertex aggregrate constructor conditional on requirement
Diffstat (limited to 'gfx/models/vertex.hpp')
-rw-r--r-- | gfx/models/vertex.hpp | 2 |
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; |