X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fresources%2Fresources.h;h=82d2f4c6798e4a9019380894b314aa56ad9aed57;hp=5861bbfb41259a8a910e87f55a2ad78498706c81;hb=fe2fc291a4fc618425c64112c9ffd3519f0b8a3e;hpb=2108712bcde8b5c4573ca4d602d5f8948b810d72 diff --git a/source/resources/resources.h b/source/resources/resources.h index 5861bbfb..82d2f4c6 100644 --- a/source/resources/resources.h +++ b/source/resources/resources.h @@ -37,9 +37,13 @@ private: 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); @@ -60,6 +64,9 @@ protected: Texture2D *create_texture2d(const std::string &); Module *create_module(const std::string &); Program *create_program(const std::string &); + + template + void set_debug_name(const std::string &, T &); }; } // namespace GL