Package | away3d.loaders.utils |
Class | public dynamic class MaterialLibrary |
Inheritance | MaterialLibrary ![]() |
Property | Defined by | ||
---|---|---|---|
autoLoadTextures : Boolean
Determines whether textures should be loaded automatically.
| MaterialLibrary | ||
loadRequired : 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 | ||
---|---|---|---|
Adds a material name reference to the library.
| MaterialLibrary | ||
Returns a material data object for the given name reference in the library.
| MaterialLibrary | ||
Called after all textures have been loaded from the
TextureLoader class. | MaterialLibrary |
autoLoadTextures | property |
public var autoLoadTextures:Boolean
Determines whether textures should be loaded automatically.
loadRequired | property |
public var loadRequired:Boolean
Flag to determine if any of the contained textures require a file load.
texturePath | property |
public var texturePath:String
The root directory path to the texture files.
addMaterial | () | method |
public function addMaterial(name:String):MaterialData
Adds a material name reference to the library.
Parametersname:String |
MaterialData |
getMaterial | () | method |
public function getMaterial(name:String):MaterialData
Returns a material data object for the given name reference in the library.
Parametersname:String |
MaterialData |
texturesLoaded | () | method |
public function texturesLoaded(loadQueue:TextureLoadQueue):void
Called after all textures have been loaded from the TextureLoader
class.
loadQueue:TextureLoadQueue |
See also