org.xith3d.resources
Interface ResourceRequest
- All Superinterfaces:
- org.jagatoo.datatypes.NamedObject
- All Known Implementing Classes:
- ModelResourceRequest, ShaderResourceRequest, SoundResourceRequest, TextureResourceRequest
public interface ResourceRequest
- extends org.jagatoo.datatypes.NamedObject
An instance of this class stores a request for a specific resource.
If is added to the list of requests of the ResourceLoader. The ResourceLoader
can retrieve all information from it to load the requested resource.
getName
java.lang.String getName()
- Specified by:
getName in interface org.jagatoo.datatypes.NamedObject
- Returns:
- the name of the requested resource
getBagName
java.lang.String getBagName()
- Returns:
- the name of the requested resource, that it will carry in the ResourceBag
loadResource
java.lang.Object loadResource(ResourceLocator resLoc,
ResourceBag resBag)
throws java.lang.Throwable
- Loads the resource and stores it into the
ResourceBag.
- Parameters:
resLoc - the ResourceLocator to load resources fromresBag - the ResourceBag to store the loaded resource to
- Returns:
- the loaded resource.
- Throws:
java.lang.Throwable