MTLLoader class
Loads a Wavefront .mtl file specifying materials
Constructors
- MTLLoader(dynamic manager)
Properties
- crossOrigin ↔ String
-
getter/setter pairinherited
- flipY ↔ bool
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- manager ↔ LoadingManager
-
getter/setter pairinherited
- materialOptions ↔ dynamic
-
getter/setter pair
- mimeType ↔ String
-
getter/setter pairinherited
- path ↔ String
-
getter/setter pairinherited
-
requestHeader
↔ Map<
String, dynamic> -
getter/setter pairinherited
- resourcePath ↔ String?
-
getter/setter pairinherited
- responseType ↔ String
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- withCredentials ↔ bool
-
getter/setter pairinherited
Methods
-
load(
dynamic url, Function onLoad, [Function? onProgress, Function? onError]) → dynamic -
- Loads and parses a MTL asset from a URL. *
- @param {String} url - URL to the MTL file.
- @param {Function}
onLoad
- Callback invoked with the loaded object. - @param {Function}
onProgress
- Callback for download progress. - @param {Function}
onError
- Callback for download errors. - @see setPath setResourcePath
- @note In order for relative texture references to resolve correctly
- you must call setResourcePath() explicitly prior to load.
- @param {Function}
override - Loads and parses a MTL asset from a URL. *
-
loadAsync(
dynamic url) → Future -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
dynamic text, [String? path, Function? onLoad, Function? onError]) → dynamic -
- Parses a MTL file. *
- @param {String} text - Content of MTL file
- @return {MaterialCreator}
- @see setPath setResourcePath
- @note In order for relative texture references to resolve correctly
- you must call setResourcePath() explicitly prior to parse.
override - Parses a MTL file. *
-
setCrossOrigin(
String crossOrigin) → Loader -
inherited
-
setMaterialOptions(
dynamic value) → dynamic -
setPath(
String path) → Loader -
inherited
-
setRequestHeader(
Map< String, dynamic> requestHeader) → Loader -
inherited
-
setResourcePath(
String? resourcePath) → Loader -
inherited
-
setWithCredentials(
bool value) → Loader -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited