]> git.tdb.fi Git - libs/gl.git/blob - source/resources.h
Add a resource collection class
[libs/gl.git] / source / resources.h
1 #ifndef MSP_GL_RESOURCES_H_
2 #define MSP_GL_RESOURCES_H_
3
4 #include <msp/datafile/collection.h>
5 #include "texture.h"
6
7 namespace Msp {
8 namespace GL {
9
10 class Texture2D;
11
12 class Resources: virtual public DataFile::Collection
13 {
14 private:
15         TextureFilter default_tex_filter;
16
17 public:
18         Resources();
19
20         void set_default_texture_filter(TextureFilter);
21
22 protected:
23         Texture2D *create_texture2d(const std::string &);
24 };
25
26 } // namespace GL
27 } // namespace Msp
28
29 #endif