1 #ifndef MSP_GL_RESOURCES_H_
2 #define MSP_GL_RESOURCES_H_
4 #include <msp/datafile/collection.h>
13 A collection class for GL resources. Most useful as a base class for an
14 application-specific collection.
16 class Resources: virtual public DataFile::Collection
19 TextureFilter default_tex_filter;
25 void set_default_texture_filter(TextureFilter);
27 /** Enables or disables sRGB conversion. If enabled, textures and material
28 colors are converted from sRGB to linear color space when loaded. */
29 void set_srgb_conversion(bool);
31 bool get_srgb_conversion() const { return srgb_conversion; }
34 Texture2D *create_texture2d(const std::string &);