]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/mesh.h
Only allow VertexArray's format to be set once
[libs/gl.git] / source / core / mesh.h
index acf2910cb7ea208f3ce2fbab9c74bc182b781928..66516267554447968a10912bbc47cdcda9b816de 100644 (file)
@@ -32,7 +32,9 @@ public:
        public:
                Loader(Mesh &, bool = true);
        private:
-               void vertices(const std::vector<VertexAttribute> &);
+               void storage(const std::vector<VertexAttribute> &);
+               void vertices();
+               void vertices_with_format(const std::vector<VertexAttribute> &);
                void batch(PrimitiveType);
                void winding(FaceWinding);
        };
@@ -79,6 +81,8 @@ private:
 public:
        ~Mesh();
 
+       void storage(const VertexFormat &);
+
        void clear();
 private:
        void check_buffers(unsigned);