| Package | away3d.loaders.utils |
| Class | public dynamic class MaterialLibrary |
| Inheritance | MaterialLibrary flash.utils.Dictionary |
| Property | Defined By | ||
|---|---|---|---|
| mtlFileName : String
The filename for the mtl file (obj only). | MaterialLibrary | ||
| mtlLoadRequired : Boolean
Flag to determine if an mtl file load is required (obj only). | MaterialLibrary | ||
| textureLoadRequired : Boolean
Flag to determine if any of the contained textures require a file load. | MaterialLibrary | ||
| texturePath : String
The root directory path to the texture files. | MaterialLibrary | ||
| Method | Defined By | ||
|---|---|---|---|
addMaterial(name:String):MaterialData
Adds a material name reference to the library. | MaterialLibrary | ||
getMaterial(name:String):MaterialData
Returns a material data object for the given name reference in the library. | MaterialLibrary | ||
texturesLoaded(loadQueue:TextureLoadQueue):void
Called after all textures have been loaded from the TextureLoader class. | MaterialLibrary | ||
| mtlFileName | property |
public var mtlFileName:StringThe filename for the mtl file (obj only).
| mtlLoadRequired | property |
public var mtlLoadRequired:BooleanFlag to determine if an mtl file load is required (obj only).
| textureLoadRequired | property |
public var textureLoadRequired:BooleanFlag to determine if any of the contained textures require a file load.
| texturePath | property |
public var texturePath:StringThe root directory path to the texture files.
| addMaterial | () | method |
public function addMaterial(name:String):MaterialDataAdds a material name reference to the library.
Parameters
name:String |
MaterialData |
| getMaterial | () | method |
public function getMaterial(name:String):MaterialDataReturns a material data object for the given name reference in the library.
Parameters
name:String |
MaterialData |
| texturesLoaded | () | method |
public function texturesLoaded(loadQueue:TextureLoadQueue):void
Called after all textures have been loaded from the TextureLoader class.
Parameters
loadQueue:TextureLoadQueue |
See also