Resource

Engine/source/core/resource.h

More...

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.

Signal< void(Resource< T > &) > &

Register with this signal to get notified when resources of this type have been loaded.

Register with this signal to get notified when resources of this type are about to get unloaded.

Private Static Functions

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

Private Static Functions

_notifyUnload(const Torque::Path & path, void * resource)