diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-30 14:57:39 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-30 14:57:39 +0000 |
commit | e29634fa618cc3bbc8cee60f4f6133385ff2f9c1 (patch) | |
tree | 166d2514a83e2c3b248b7e459fc84f1291e44f04 /gfx/models/vertex.hpp | |
parent | Add directional light to pointlight test, fix setting of GL_DEPTH_TEST (diff) | |
download | ilt-e29634fa618cc3bbc8cee60f4f6133385ff2f9c1.tar.bz2 ilt-e29634fa618cc3bbc8cee60f4f6133385ff2f9c1.tar.xz ilt-e29634fa618cc3bbc8cee60f4f6133385ff2f9c1.zip |
Make Vertex constexpr
Diffstat (limited to 'gfx/models/vertex.hpp')
-rw-r--r-- | gfx/models/vertex.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/models/vertex.hpp b/gfx/models/vertex.hpp index f2e38f6..095c82f 100644 --- a/gfx/models/vertex.hpp +++ b/gfx/models/vertex.hpp @@ -4,7 +4,7 @@ class Vertex { public: - Vertex(glm::vec3 pos, glm::vec2 texCoord, glm::vec3 normal) : + constexpr Vertex(glm::vec3 pos, glm::vec2 texCoord, glm::vec3 normal) : pos {std::move(pos)}, texCoord {std::move(texCoord)}, normal {std::move(normal)} { } |