Nebula
Loading...
Searching...
No Matches
resourceserver.h File Reference
#include <functional>
#include "core/refcounted.h"
#include "ids/id.h"
#include "core/singleton.h"
#include "resourceid.h"
#include "resourceloader.h"
#include "resourceloaderthread.h"

Go to the source code of this file.

Classes

class  Resources::ResourceServer
 

Namespaces

namespace  Resources
 A resource is a container for some type of file which is loaded.
 

Functions

Resources::ResourceId Resources::CreateResource (const ResourceName &res, const Util::StringAtom &tag, std::function< void(const Resources::ResourceId)> success=nullptr, std::function< void(const Resources::ResourceId)> failed=nullptr, bool immediate=false, bool stream=true)
 
template<class METADATA >
Resources::ResourceId Resources::CreateResource (const ResourceName &res, const METADATA &metaData, const Util::StringAtom &tag, std::function< void(const Resources::ResourceId)> success=nullptr, std::function< void(const Resources::ResourceId)> failed=nullptr, bool immediate=false, bool stream=true)
 
void Resources::CreateResourceListener (const ResourceId &id, std::function< void(const Resources::ResourceId)> success, std::function< void(const Resources::ResourceId)> failed=nullptr)
 
void Resources::SetMinLod (const ResourceId &id, float lod, bool immediate)
 
void Resources::DiscardResource (const Resources::ResourceId id)
 
void Resources::ReloadResource (const ResourceName &res)
 
void Resources::WaitForLoaderThread ()
 
template<class POOL_TYPE >
POOL_TYPE * Resources::GetStreamLoader ()