bool srgb_conversion;
ResourceManager *resource_manager;
+ static Resources *global_resources;
+
public:
- Resources();
+ Resources(bool = true);
+ virtual ~Resources();
+ static Resources &get_global();
static const DataFile::CollectionSource &get_builtins();
void set_default_texture_filter(TextureFilter);
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