diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-13 20:40:49 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-13 20:40:49 +0100 |
commit | da0bbb835d103954724c0f9bc2800b0e7cdb61fe (patch) | |
tree | 97358dc01536d51f0f226270025105cc62679cf9 /gfx/models/mesh.h | |
parent | Add ConstTypeDefs as a const only variant of StdTypeDefs (diff) | |
download | ilt-da0bbb835d103954724c0f9bc2800b0e7cdb61fe.tar.bz2 ilt-da0bbb835d103954724c0f9bc2800b0e7cdb61fe.tar.xz ilt-da0bbb835d103954724c0f9bc2800b0e7cdb61fe.zip |
Standard typedefs for Mesh
Diffstat (limited to 'gfx/models/mesh.h')
-rw-r--r-- | gfx/models/mesh.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/models/mesh.h b/gfx/models/mesh.h index c6f11a2..25a9064 100644 --- a/gfx/models/mesh.h +++ b/gfx/models/mesh.h @@ -4,10 +4,11 @@ #include <glArrays.h>
#include <memory>
#include <span>
+#include <stdTypeDefs.hpp>
class Vertex;
-class Mesh {
+class Mesh : public ConstTypeDefs<Mesh> {
public:
Mesh(const std::span<const Vertex> vertices, const std::span<const unsigned int> indices, GLenum = GL_TRIANGLES);
@@ -19,4 +20,3 @@ private: GLsizei m_numIndices;
GLenum mode;
};
-using MeshPtr = std::shared_ptr<const Mesh>;
|