]> git.tdb.fi Git - libs/gl.git/blobdiff - source/resources/resources.h
Fix brokenness from EnvironmentMap changes
[libs/gl.git] / source / resources / resources.h
index abda5cde7b29f8ee0756536e9acf918510a5333f..a50fdc0e022081602abcaea69c44b4e7d3b2ee9d 100644 (file)
@@ -21,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;
@@ -50,6 +60,9 @@ protected:
        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