Resources *Resources::global_resources = 0;
Resources::Resources(bool set_as_global):
- srgb_conversion(false),
resource_manager(0)
{
add_type<Animation>().suffix(".anim").keyword("animation");
return builtins;
}
-void Resources::set_srgb_conversion(bool c)
-{
- srgb_conversion = c;
-}
-
void Resources::set_resource_manager(ResourceManager *m)
{
resource_manager = m;
virtual void type(const DataFile::Symbol &);
};
- bool srgb_conversion;
ResourceManager *resource_manager;
static Resources *global_resources;
static Resources &get_global();
static const DataFile::CollectionSource &get_builtins();
- /** Enables or disables sRGB conversion. If enabled, textures and material
- colors are converted from sRGB to linear color space when loaded. */
- DEPRECATED void set_srgb_conversion(bool);
-
- DEPRECATED bool get_srgb_conversion() const { return srgb_conversion; }
-
void set_resource_manager(ResourceManager *);
protected: