summaryrefslogtreecommitdiff
path: root/gfx/models
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-12-30 14:57:39 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-12-30 14:57:39 +0000
commite29634fa618cc3bbc8cee60f4f6133385ff2f9c1 (patch)
tree166d2514a83e2c3b248b7e459fc84f1291e44f04 /gfx/models
parentAdd directional light to pointlight test, fix setting of GL_DEPTH_TEST (diff)
downloadilt-e29634fa618cc3bbc8cee60f4f6133385ff2f9c1.tar.bz2
ilt-e29634fa618cc3bbc8cee60f4f6133385ff2f9c1.tar.xz
ilt-e29634fa618cc3bbc8cee60f4f6133385ff2f9c1.zip
Make Vertex constexpr
Diffstat (limited to 'gfx/models')
-rw-r--r--gfx/models/vertex.hpp2
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)}
{
}