]> 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 57c87b7e42986ac31f94092612c373159b633a7a..66516267554447968a10912bbc47cdcda9b816de 100644 (file)
@@ -32,7 +32,9 @@ public:
        public:
                Loader(Mesh &, bool = true);
        private:
-               void vertices(const std::vector<VertexComponent> &);
+               void storage(const std::vector<VertexAttribute> &);
+               void vertices();
+               void vertices_with_format(const std::vector<VertexAttribute> &);
                void batch(PrimitiveType);
                void winding(FaceWinding);
        };
@@ -69,6 +71,7 @@ private:
        mutable unsigned short dirty;
        bool disallow_rendering;
        const WindingTest *winding;
+       std::string debug_name;
 
 public:
        Mesh(ResourceManager * = 0);
@@ -78,6 +81,8 @@ private:
 public:
        ~Mesh();
 
+       void storage(const VertexFormat &);
+
        void clear();
 private:
        void check_buffers(unsigned);
@@ -105,6 +110,8 @@ public:
        virtual Resource::AsyncLoader *load(IO::Seekable &, const Resources * = 0);
        virtual UInt64 get_data_size() const;
        virtual void unload();
+
+       void set_debug_name(const std::string &);
 };
 
 } // namespace GL