]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/resources.h
Change Style so it doesn't need a special loading function
[libs/gltk.git] / source / resources.h
index 3d39393bac979b144f54d152d73dc69563355c5e..e68d89fc178c16e79f20aaae6c262920077ec8f3 100644 (file)
@@ -4,17 +4,21 @@
 #include <msp/gl/font.h>
 #include <msp/gl/texture.h>
 #include <msp/datafile/collection.h>
-#include <msp/path/path.h>
+#include <msp/fs/path.h>
 #include "graphic.h"
 #include "style.h"
 
 namespace Msp {
 namespace GLtk {
 
+/**
+Stores resources such as styles and graphics.  All widgets require a Resources
+instance in constructor.
+*/
 class Resources: public DataFile::Collection
 {
 private:
-       Path path;
+       FS::Path path;
        GL::Font *default_font;
 
 public:
@@ -30,13 +34,10 @@ public:
                void font(const std::string &);
        };
 
+public:
        Resources();
 
-       void set_path(const Path &);
        const GL::Font &get_default_font() const;
-private:
-       GL::Font *create_font(const std::string &);
-       GL::Texture2D *create_texture(const std::string &);
 };
 
 } // namespace GLtk