Package | away3d.materials |
Class | public class BitmapFileMaterial |
Inheritance | BitmapFileMaterial ![]() ![]() ![]() |
Implements | ITriangleMaterial, IUVMaterial |
Method | Defined by | ||
---|---|---|---|
BitmapFileMaterial
(url:String = "", init:Object = null)
Creates a new
BitmapFileMaterial object. | BitmapFileMaterial | ||
addOnLoadError(listener:Function):void
Default method for adding a loadError event listener
| BitmapFileMaterial | ||
addOnLoadProgress(listener:Function):void
Default method for adding a loadProgress event listener
| BitmapFileMaterial | ||
addOnLoadSuccess(listener:Function):void
Default method for adding a loadSuccess event listener
| BitmapFileMaterial | ||
![]() |
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| BitmapMaterial | |
![]() |
Clears facematerial value objects when bitmap requires updating
| BitmapMaterial | |
![]() | BitmapMaterial | ||
![]() |
getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
| TransformBitmapMaterial | |
![]() |
Invalidates facematerial value objects when texturemapping requires updating
| BitmapMaterial | |
removeOnLoadError(listener:Function):void
Default method for removing a loadError event listener
| BitmapFileMaterial | ||
removeOnLoadProgress(listener:Function):void
Default method for removing a loadProgress event listener
| BitmapFileMaterial | ||
removeOnLoadSuccess(listener:Function):void
Default method for removing a loadSuccess event listener
| BitmapFileMaterial | ||
![]() |
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| BitmapMaterial | |
![]() |
Sends data from the material coupled with data from the
DrawBillboard primitive to the render session. | BitmapMaterial | |
![]() |
renderBitmapLayer(tri:DrawTriangle, containerRect:Rectangle, parentFaceMaterialVO:FaceMaterialVO):FaceMaterialVO
Renders a bitmapData surface object for the speficied face.
| TransformBitmapMaterial | |
![]() |
Renders a material layer for the specified triangle.
| BitmapMaterial | |
![]() |
Sends data from the material coupled with data from the
DrawTriangle primitive to the render session. | TransformBitmapMaterial | |
![]() |
Called once per render loop when material is visible.
| TransformBitmapMaterial |
Event | Summary | Defined by | ||
---|---|---|---|---|
Dispatched when the material fails to load a file. | BitmapFileMaterial | |||
Dispatched every frame the material is loading. | BitmapFileMaterial | |||
Dispatched when the material completes a file load successfully. | BitmapFileMaterial |
BitmapFileMaterial | () | constructor |
public function BitmapFileMaterial(url:String = "", init:Object = null)
Parameters
url:String (default = " ") — The location of the bitmapasset to load.
|
|
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
checkPolicyFile:Boolean (default = false) |
addOnLoadError | () | method |
public function addOnLoadError(listener:Function):void
Default method for adding a loadError event listener
Parameterslistener:Function — The listener function
|
addOnLoadProgress | () | method |
public function addOnLoadProgress(listener:Function):void
Default method for adding a loadProgress event listener
Parameterslistener:Function — The listener function
|
addOnLoadSuccess | () | method |
public function addOnLoadSuccess(listener:Function):void
Default method for adding a loadSuccess event listener
Parameterslistener:Function — The listener function
|
removeOnLoadError | () | method |
public function removeOnLoadError(listener:Function):void
Default method for removing a loadError event listener
Parameterslistener:Function — The listener function
|
removeOnLoadProgress | () | method |
public function removeOnLoadProgress(listener:Function):void
Default method for removing a loadProgress event listener
Parameterslistener:Function — The listener function
|
removeOnLoadSuccess | () | method |
public function removeOnLoadSuccess(listener:Function):void
Default method for removing a loadSuccess event listener
Parameterslistener:Function — The listener function
|
loadError | event |
loadProgress | event |
loadSuccess | event |
away3d.events.MaterialEvent
Dispatched when the material completes a file load successfully.