diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-17 22:43:51 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-17 22:43:51 +0100 |
commit | 9b0828ea5bb6cb4e92d6019785b3ceb88e2a58be (patch) | |
tree | fad012153b02c786c3471e2e70119feaf5b8fe43 /gfx/models/mesh.h | |
parent | Revamp how VertexArrayObject configures attributes and data (diff) | |
download | ilt-9b0828ea5bb6cb4e92d6019785b3ceb88e2a58be.tar.bz2 ilt-9b0828ea5bb6cb4e92d6019785b3ceb88e2a58be.tar.xz ilt-9b0828ea5bb6cb4e92d6019785b3ceb88e2a58be.zip |
Separate storing of mesh vertex/index data from configuring VAO
Diffstat (limited to 'gfx/models/mesh.h')
-rw-r--r-- | gfx/models/mesh.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gfx/models/mesh.h b/gfx/models/mesh.h index 25a9064..0af8d70 100644 --- a/gfx/models/mesh.h +++ b/gfx/models/mesh.h @@ -7,12 +7,14 @@ #include <stdTypeDefs.hpp>
class Vertex;
+class VertexArrayObject;
class Mesh : public ConstTypeDefs<Mesh> {
public:
Mesh(const std::span<const Vertex> vertices, const std::span<const unsigned int> indices, GLenum = GL_TRIANGLES);
void Draw() const;
+ VertexArrayObject & configureVAO(VertexArrayObject &&) const;
private:
glVertexArray m_vertexArrayObject;
|