Package | away3d.loaders.utils |
Class | public dynamic class CentralMaterialLibrary |
Inheritance | CentralMaterialLibrary flash.utils.Dictionary |
Method | Defined by | ||
---|---|---|---|
[static]
Returns a material for the given name reference in the library.
| CentralMaterialLibrary | ||
clearMaterial(id:String):void
[static]
clears a material for the given name reference in the library.
| CentralMaterialLibrary | ||
[static]
Returns a material for the given name reference in the library.
| CentralMaterialLibrary | ||
[static]
Returns a mesh for the given name reference in the library.
| CentralMaterialLibrary | ||
getURLMaterial(id:String):String
[static]
Returns a url for the given name reference in the library.
| CentralMaterialLibrary |
addMaterial | () | method |
public static function addMaterial(material:Material, mesh:Mesh = null, id:String = "", url:String = ""):void
Returns a material for the given name reference in the library.
Parametersmaterial:Material |
|
mesh:Mesh (default = null )
|
|
id:String (default = " ")
|
|
url:String (default = " ")
|
clearMaterial | () | method |
public static function clearMaterial(id:String):void
clears a material for the given name reference in the library.
Parametersid:String |
getMaterial | () | method |
public static function getMaterial(id:String):Material
Returns a material for the given name reference in the library.
Parametersid:String |
Material |
getMeshFromMaterialName | () | method |
public static function getMeshFromMaterialName(id:String):Mesh
Returns a mesh for the given name reference in the library.
Parametersid:String |
Mesh |
getURLMaterial | () | method |
public static function getURLMaterial(id:String):String
Returns a url for the given name reference in the library.
Parametersid:String |
String |