X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fmesh.h;h=66516267554447968a10912bbc47cdcda9b816de;hb=d40673bd28c4b4524d3642b949d9d109dc6f9f24;hp=c325ade6111c9f4a981f41d80b228db65decb057;hpb=ea7832c7c1ffab00cc1168bc8c41375fdd0eae86;p=libs%2Fgl.git diff --git a/source/core/mesh.h b/source/core/mesh.h index c325ade6..66516267 100644 --- a/source/core/mesh.h +++ b/source/core/mesh.h @@ -32,7 +32,9 @@ public: public: Loader(Mesh &, bool = true); private: - void vertices(const std::vector &); + void storage(const std::vector &); + void vertices(); + void vertices_with_format(const std::vector &); 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