Class: TGALoader

zen3d.TGALoader(manager)

new TGALoader(manager)

A loader for loading a .tga Image.
Parameters:
Name Type Description
manager zen3d.LoadingManager — The loadingManager for the loader to use. Default is zen3d.DefaultLoadingManager.
Source:

Methods

load(url, onLoad=opt, onProgress=opt, onError=opt)

Load the URL and pass the response to the onLoad function.
Parameters:
Name Type Attributes Description
url string — the path or URL to the file. This can also be a Data URI.
onLoad= function <optional>
— Will be called when loading completes. The argument will be the loaded image ( draw to an canvas element ).
onProgress= function <optional>
— Will be called while load progresses. The argument will be the XMLHttpRequest instance, which contains .total and .loaded bytes.
onError= function <optional>
— Will be called if an error occurs.
Source: