Defined in:Loads the data for a resource object.
ResourceResult LoadResource(ResourceLoader *loader);
||An open loader object that can read the resource data.|
LoadResourcefunction loads the data for a resource object that was created by passing the
kResourceDeferLoadflag to the
ResourceLoaderobject passed in the
loaderparameter should have been opened by calling the
Resource::OpenLoaderfunction for the same resource object for which the
LoadResourcefunction is called.
If the resource data is successfully loaded, then the return value is
kResourceOkay. Otherwise, the return value is
Once the resource data has been loaded into a resource object, the resource object owns the data and will release it properly. The
Loadfunction should not be called more than once for the same resource object.