]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/mesh.h
Set OpenGL debug labels on various objects loaded from Resources
[libs/gl.git] / source / core / mesh.h
index 57c87b7e42986ac31f94092612c373159b633a7a..acf2910cb7ea208f3ce2fbab9c74bc182b781928 100644 (file)
@@ -32,7 +32,7 @@ public:
        public:
                Loader(Mesh &, bool = true);
        private:
-               void vertices(const std::vector<VertexComponent> &);
+               void vertices(const std::vector<VertexAttribute> &);
                void batch(PrimitiveType);
                void winding(FaceWinding);
        };
@@ -69,6 +69,7 @@ private:
        mutable unsigned short dirty;
        bool disallow_rendering;
        const WindingTest *winding;
+       std::string debug_name;
 
 public:
        Mesh(ResourceManager * = 0);
@@ -105,6 +106,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