]> git.tdb.fi Git - libs/gl.git/blobdiff - source/resources.h
Add a resource collection class
[libs/gl.git] / source / resources.h
diff --git a/source/resources.h b/source/resources.h
new file mode 100644 (file)
index 0000000..8871c16
--- /dev/null
@@ -0,0 +1,29 @@
+#ifndef MSP_GL_RESOURCES_H_
+#define MSP_GL_RESOURCES_H_
+
+#include <msp/datafile/collection.h>
+#include "texture.h"
+
+namespace Msp {
+namespace GL {
+
+class Texture2D;
+
+class Resources: virtual public DataFile::Collection
+{
+private:
+       TextureFilter default_tex_filter;
+
+public:
+       Resources();
+
+       void set_default_texture_filter(TextureFilter);
+
+protected:
+       Texture2D *create_texture2d(const std::string &);
+};
+
+} // namespace GL
+} // namespace Msp
+
+#endif