diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-01 15:53:54 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-01 15:53:54 +0000 |
commit | 69e6b7d2d349dcc42d2d415a72181ba729d5a19d (patch) | |
tree | 5d7dff2f2775701069806eceb4eaef23b22eba3f /gfx/models/vertex.h | |
parent | Remove legacy Position types from shadowMapper (diff) | |
download | ilt-69e6b7d2d349dcc42d2d415a72181ba729d5a19d.tar.bz2 ilt-69e6b7d2d349dcc42d2d415a72181ba729d5a19d.tar.xz ilt-69e6b7d2d349dcc42d2d415a72181ba729d5a19d.zip |
Remove more use of legacy types
Diffstat (limited to 'gfx/models/vertex.h')
-rw-r--r-- | gfx/models/vertex.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gfx/models/vertex.h b/gfx/models/vertex.h index 5635fa1..3c6215f 100644 --- a/gfx/models/vertex.h +++ b/gfx/models/vertex.h @@ -6,16 +6,17 @@ class Vertex { public: #ifndef __cpp_aggregate_paren_init - constexpr Vertex(Position3D pos, TextureRelCoord texCoord, Normal3D normal, RGBA colour = {}, GLuint material = 0) : - pos {std::move(pos)}, texCoord {std::move(texCoord)}, normal {std::move(normal)}, colour {std::move(colour)}, - material {material} + constexpr Vertex( + RelativePosition3D pos, TextureRelCoord texCoord, Normal3D normal, RGBA colour = {}, GLuint material = 0) : + pos {std::move(pos)}, + texCoord {std::move(texCoord)}, normal {std::move(normal)}, colour {std::move(colour)}, material {material} { } #endif bool operator==(const Vertex &) const = default; - Position3D pos {}; + RelativePosition3D pos {}; TextureRelCoord texCoord {}; Normal3D normal {}; RGBA colour {}; |