Urho3D
Classes | Enumerations | Functions
Resource.h File Reference
#include "../Core/Object.h"
#include "../Core/Timer.h"
#include "../Resource/JSONValue.h"

Classes

class  Urho3D::Resource
 Base class for resources. More...
 
class  Urho3D::ResourceWithMetadata
 Base class for resources that support arbitrary metadata stored. Metadata serialization shall be implemented in derived classes. More...
 

Enumerations

enum  Urho3D::AsyncLoadState {
  Urho3D::ASYNC_DONE = 0 , Urho3D::ASYNC_QUEUED = 1 , Urho3D::ASYNC_LOADING = 2 , Urho3D::ASYNC_SUCCESS = 3 ,
  Urho3D::ASYNC_FAIL = 4
}
 Asynchronous loading state of a resource. More...
 

Functions

const String & Urho3D::GetResourceName (Resource *resource)
 
StringHash Urho3D::GetResourceType (Resource *resource, StringHash defaultType)
 
ResourceRef Urho3D::GetResourceRef (Resource *resource, StringHash defaultType)
 
template<class T >
Vector< String > Urho3D::GetResourceNames (const Vector< SharedPtr< T > > &resources)
 
template<class T >
ResourceRefList Urho3D::GetResourceRefList (const Vector< SharedPtr< T > > &resources)
 

Enumeration Type Documentation

◆ AsyncLoadState

Asynchronous loading state of a resource.

Enumerator
ASYNC_DONE 

No async operation in progress.

ASYNC_QUEUED 

Queued for asynchronous loading.

ASYNC_LOADING 

In progress of calling BeginLoad() in a worker thread.

ASYNC_SUCCESS 

BeginLoad() succeeded. EndLoad() can be called in the main thread.

ASYNC_FAIL 

BeginLoad() failed.