Package | away3d.materials |
Class | public class EnviroBitmapMaterialCache |
Inheritance | EnviroBitmapMaterialCache ![]() ![]() ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | alpha : Number
Defines an alpha value for the texture bitmap.
| BitmapMaterial | |
bitmap : BitmapData [read-only]
Returns the bitmapData object being used as the material texture.
| EnviroBitmapMaterialCache | ||
![]() | blendMode : String
Defines a blendMode value for the texture bitmap.
| BitmapMaterial | |
![]() | cache : Boolean
Defines whether each created bitmapData surface is to be cached, or updated every frame.
| BitmapMaterialContainer | |
![]() | color : uint
Defines a colored tint for the texture bitmap.
| BitmapMaterial | |
![]() | debug : Boolean = false
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines.
| BitmapMaterial | |
enviroMap : BitmapData [read-only]
Returns the bitmapData object being used as the material environment map.
| EnviroBitmapMaterialCache | ||
![]() | height : Number
Returns the height of the bitmapData being used as the material texture.
| BitmapMaterial | |
![]() | materials : Array
An array of bitmapmaterial objects to be overlayed sequentially.
| BitmapMaterialContainer | |
mode : String
Setting for possible mapping methods.
| EnviroBitmapMaterialCache | ||
![]() | precision : Number
Corrects distortion caused by the affine transformation (non-perpective) of textures.
| BitmapMaterial | |
reflectiveness : Number
Coefficient for the reflectiveness of the material.
| EnviroBitmapMaterialCache | ||
![]() | repeat : Boolean = false
Determines if texture bitmap will tile in uv-space
| BitmapMaterial | |
![]() | smooth : Boolean = false
Determines if texture bitmap is smoothed (bilinearly filtered) when drawn to screen.
| BitmapMaterial | |
![]() | transparent : Boolean
Defines whether the caching bitmapData objects are transparent
| BitmapMaterialContainer | |
![]() | visible : Boolean
Indicates whether the material is visible
| BitmapMaterial | |
![]() | width : Number
Returns the width of the bitmapData being used as the material texture.
| BitmapMaterial |
Method | Defined by | ||
---|---|---|---|
EnviroBitmapMaterialCache
(bitmap:BitmapData, enviroMap:BitmapData, init:Object = null)
Creates a new
EnviroBitmapMaterialCache object. | EnviroBitmapMaterialCache | ||
![]() |
addOnResize(listener:Function):void
Default method for adding a materialresize event listener
| BitmapMaterial | |
![]() |
getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
| BitmapMaterial | |
![]() |
removeOnResize(listener:Function):void
Default method for removing a materialresize event listener
| BitmapMaterial | |
![]() |
Renders a bitmapData surface object for the speficied face.
| BitmapMaterialContainer | |
![]() |
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. | BitmapMaterial | |
![]() |
update():void
Clear and updates the currrent bitmapData surface on all faces.
| BitmapMaterialContainer | |
![]() |
Creates a new
BitmapMaterialContainer object. | BitmapMaterialContainer |
bitmap | property |
bitmap:BitmapData
[read-only]Returns the bitmapData object being used as the material texture.
Implementation public function get bitmap():BitmapData
enviroMap | property |
enviroMap:BitmapData
[read-only]Returns the bitmapData object being used as the material environment map.
Implementation public function get enviroMap():BitmapData
mode | property |
mode:String
[read-write]Setting for possible mapping methods.
Implementation public function get mode():String
public function set mode(value:String):void
reflectiveness | property |
reflectiveness:Number
[read-write]Coefficient for the reflectiveness of the material.
Implementation public function get reflectiveness():Number
public function set reflectiveness(value:Number):void
EnviroBitmapMaterialCache | () | constructor |
public function EnviroBitmapMaterialCache(bitmap:BitmapData, enviroMap:BitmapData, init:Object = null)
Parameters
bitmap:BitmapData — The bitmapData object to be used as the material's texture.
|
|
enviroMap:BitmapData — The bitmapData object to be used as the material's environment map.
|
|
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|