]> git.tdb.fi Git - libs/gl.git/blobdiff - source/resourcemanager.h
Give meshes a higher priority when loading
[libs/gl.git] / source / resourcemanager.h
index f554b3484c7e006006d9b292bc803aea136f9e50..399d479abd2111dab7de39b557846d03aa797b2c 100644 (file)
@@ -16,6 +16,7 @@ class ResourceWatcher;
 class resource_load_error: public std::runtime_error
 {
 public:
+       resource_load_error(const std::string &, const std::string &);
        resource_load_error(const std::string &, const std::exception &);
        virtual ~resource_load_error() throw() { }
 };
@@ -55,6 +56,7 @@ private:
 
                Resource *resource;
                ResourceLocation location;
+               bool load_priority;
                IO::Seekable *io;
                Resource::AsyncLoader *loader;
                State state;
@@ -137,7 +139,7 @@ public:
        void set_resource_location(Resource &, const ResourceLocation &);
        const ResourceLocation *get_resource_location(const Resource &) const;
        void load_resource(Resource &);
-       bool is_resource_loaded(const Resource &);
+       bool is_resource_loaded(const Resource &) const;
        void resource_used(const Resource &);
        void remove_resource(Resource &);