Resource
Public Functions
Resource()
Resource(const ResourceBase & base)
T *
operator=(const ResourceBase & base)
setResource(const ResourceBase & base, void * resource)
Public Static Functions
Signal< bool(const Torque::Path &, void **)> &
Registering with this signal will give an opportunity to handle resource creation before calling the create() function.
Register with this signal to get notified when resources of this type have been loaded.
Signal< void(const Torque::Path &, T *) > &
Register with this signal to get notified when resources of this type are about to get unloaded.
Private Functions
void *
create(const Torque::Path & path)
void *
create(const Torque::Path & path)
T *
Signal< bool(const Torque::Path &, void **)> &
Private Static Functions
_notifyUnload(const Torque::Path & path, void * resource)
Detailed Description
Public Functions
Resource()
Resource(const ResourceBase & base)
operator const T*()
operator T*()
operator*()
operator*()
operator->()
operator->()
operator=(const ResourceBase & base)
setResource(const ResourceBase & base, void * resource)
signature()
Public Static Functions
getLoadSignal()
Registering with this signal will give an opportunity to handle resource creation before calling the create() function.
This may be used to handle file extensions differently and allow a more plugin-like approach to adding resources. Using this mechanism, one could, for example, override the default methods for loading DTS without touching the main source.
getPostLoadSignal()
Register with this signal to get notified when resources of this type have been loaded.
getUnloadSignal()
Register with this signal to get notified when resources of this type are about to get unloaded.
signature()
Private Functions
_getNotifyUnloadFn()
Reimplemented from: ResourceBase
_triggerPostLoadSignal()
Reimplemented from: ResourceBase
create(const Torque::Path & path)
Reimplemented from: ResourceBase
create(const Torque::Path & path)
Reimplemented from: ResourceBase
createHolder(void * )
Reimplemented from: ResourceBase
getResource()
getResource()
getSignature()
Reimplemented from: ResourceBase
getStaticLoadSignal()
Reimplemented from: ResourceBase