X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fresources.cpp;h=10d76148860c0e43d3464429e534502b08a966f3;hb=e37851b98dde5082ee92570354746f2f92e21940;hp=8e872d5defbc7a703aec6b9ee56d3218fd393289;hpb=b30209f7d9c984ee03df779446fa4ad5f9334865;p=libs%2Fgl.git diff --git a/source/resources.cpp b/source/resources.cpp index 8e872d5d..10d76148 100644 --- a/source/resources.cpp +++ b/source/resources.cpp @@ -19,7 +19,8 @@ namespace Msp { namespace GL { Resources::Resources(): - default_tex_filter(LINEAR_MIPMAP_LINEAR) + default_tex_filter(LINEAR_MIPMAP_LINEAR), + srgb_conversion(false) { add_type().suffix(".anim").keyword("animation"); add_type().suffix(".arma").keyword("armature"); @@ -40,6 +41,11 @@ void Resources::set_default_texture_filter(TextureFilter tf) default_tex_filter = tf; } +void Resources::set_srgb_conversion(bool c) +{ + srgb_conversion = c; +} + Texture2D *Resources::create_texture2d(const string &name) { string ext = FS::extpart(name);