X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fresources.h;fp=source%2Fresources.h;h=0390d85936902d4b7e75b4c2d569ec8548e61353;hp=8871c16e0b2648767bc3586727982d8c0bcfa296;hb=e37851b98dde5082ee92570354746f2f92e21940;hpb=49758ab622d2e8ed4b3a60d7b9afc4abd741300c diff --git a/source/resources.h b/source/resources.h index 8871c16e..0390d859 100644 --- a/source/resources.h +++ b/source/resources.h @@ -13,12 +13,19 @@ class Resources: virtual public DataFile::Collection { private: TextureFilter default_tex_filter; + bool srgb_conversion; public: Resources(); void set_default_texture_filter(TextureFilter); + /** Enables or disables sRGB conversion. If enabled, textures and material + colors are converted from sRGB to linear color space when loaded. */ + void set_srgb_conversion(bool); + + bool get_srgb_conversion() const { return srgb_conversion; } + protected: Texture2D *create_texture2d(const std::string &); };