]> git.tdb.fi Git - libs/gl.git/blobdiff - source/resources/resources.h
Set OpenGL debug labels on various objects loaded from Resources
[libs/gl.git] / source / resources / resources.h
index 3036c2f463ef44425d0a4f48939a84fb363aae37..a50fdc0e022081602abcaea69c44b4e7d3b2ee9d 100644 (file)
@@ -12,6 +12,7 @@ class Mesh;
 class Module;
 class Program;
 class ResourceManager;
+class Scene;
 class Texture2D;
 
 /**
@@ -20,6 +21,16 @@ application-specific collection.
 */
 class Resources: virtual public DataFile::Collection
 {
+public:
+       class Loader: public DataFile::DerivedObjectLoader<Resources, Collection::Loader>
+       {
+       public:
+               Loader(Resources &);
+
+       private:
+               void scene(const std::string &);
+       };
+
 private:
        TextureFilter default_tex_filter;
        float default_tex_anisotropy;
@@ -45,9 +56,13 @@ public:
 protected:
        Material *create_material(const std::string &);
        Mesh *create_mesh(const std::string &);
+       Scene *create_scene(const std::string &);
        Texture2D *create_texture2d(const std::string &);
        Module *create_module(const std::string &);
        Program *create_program(const std::string &);
+
+       template<typename T>
+       void set_debug_name(const std::string &, T &);
 };
 
 } // namespace GL