namespace GL {
Resources::Resources():
- default_tex_filter(LINEAR_MIPMAP_LINEAR)
+ default_tex_filter(LINEAR_MIPMAP_LINEAR),
+ srgb_conversion(false)
{
add_type<Animation>().suffix(".anim").keyword("animation");
add_type<Armature>().suffix(".arma").keyword("armature");
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);