}
}
-bool ResourceManager::is_resource_loaded(const Resource &r)
+bool ResourceManager::is_resource_loaded(const Resource &r) const
{
ManagedResource *managed = reinterpret_cast<ManagedResource *>(r.get_manager_data());
return managed ? managed->state==ManagedResource::LOADED : false;
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 &);