|
| MeshLoader () |
| constructor
|
|
virtual | ~MeshLoader () |
| destructor
|
|
| ResourceLoader () |
| constructor
|
|
virtual | ~ResourceLoader () |
| destructor
|
|
virtual void | Setup () |
| setup resource loader, initiates the placeholder and error resources if valid, so don't forget to run!
|
|
virtual void | Discard () |
| discard resource loader
|
|
virtual void | LoadFallbackResources () |
| load placeholder and error resources
|
|
Resources::ResourceId | CreateResource (const Resources::ResourceName &res, const void *loadInfo, SizeT loadInfoSize, const Util::StringAtom &tag, std::function< void(const Resources::ResourceId)> success, std::function< void(const Resources::ResourceId)> failed, bool immediate, bool stream) |
| create a container with a tag associated with it, if no tag is provided, the resource will be untagged
|
|
void | DiscardResource (const Resources::ResourceId id) |
| discard container
|
|
void | DiscardByTag (const Util::StringAtom &tag) |
| discard all resources associated with a tag
|
|
void | CreateListener (const Resources::ResourceId res, std::function< void(const Resources::ResourceId)> success, std::function< void(const Resources::ResourceId)> failed) |
| Create new listener on resource.
|
|
const Resources::ResourceName & | GetName (const Resources::ResourceId id) const |
| get resource name
|
|
const uint32_t | GetUsage (const Resources::ResourceId id) const |
| get resource usage from resource id
|
|
const Util::StringAtom | GetTag (const Resources::ResourceId id) const |
| get resource tag was first registered with
|
|
const Resource::State | GetState (const Resources::ResourceId id) const |
| get resource state
|
|
const Resources::ResourceId | GetId (const Resources::ResourceName &name) const |
| get resource id by name, use with care
|
|
const Util::Dictionary< Resources::ResourceName, Ids::Id32 > & | GetResources () const |
| get the dictionary of all resource-id pairs
|
|
const bool | HasResource (const Resources::ResourceId id) const |
| returns true if pool has resource
|
|
const int32_t & | GetUniqueId () const |
| get the global identifier for this pool
|
|
void | ReloadResource (const Resources::ResourceName &res, std::function< void(const Resources::ResourceId)> success, std::function< void(const Resources::ResourceId)> failed) |
| reload resource using resource name
|
|
void | ReloadResource (const Resources::ResourceId &id, std::function< void(const Resources::ResourceId)> success, std::function< void(const Resources::ResourceId)> failed) |
| reload resource using resource id
|
|
void | SetMinLod (const Resources::ResourceId &id, const float lod, bool immediate) |
| begin updating a resources lod
|
|
| RefCounted () |
| constructor
|
|
int | GetRefCount () const |
| get the current refcount
|
|
void | AddRef () |
| increment refcount by one
|
|
void | Release () |
| decrement refcount and destroy object if refcount is zero
|
|
bool | IsInstanceOf (const Rtti &rtti) const |
| return true if this object is instance of given class
|
|
bool | IsInstanceOf (const Util::String &className) const |
| return true if this object is instance of given class by string
|
|
bool | IsInstanceOf (const Util::FourCC &classFourCC) const |
| return true if this object is instance of given class by fourcc
|
|
bool | IsA (const Rtti &rtti) const |
| return true if this object is instance of given class, or a derived class
|
|
bool | IsA (const Util::String &rttiName) const |
| return true if this object is instance of given class, or a derived class, by string
|
|
bool | IsA (const Util::FourCC &rttiFourCC) const |
| return true if this object is instance of given class, or a derived class, by fourcc
|
|
const Util::String & | GetClassName () const |
| get the class name
|
|
Util::FourCC | GetClassFourCC () const |
| get the class FourCC code
|
|