Package | away3d.materials |
Class | public class BitmapMaskMaterial |
Inheritance | BitmapMaskMaterial BitmapMaterial LayerMaterial ColorMaterial WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
Property | Defined by | ||
---|---|---|---|
alpha : Number
Defines an alpha value for the texture bitmap.
| BitmapMaterial | ||
bitmap : BitmapData
Defines the bitmapData object being used as the material texture.
| BitmapMaterial | ||
blendMode : String
Defines a blendMode value for the texture bitmap.
| BitmapMaterial | ||
color : uint
Defines a colored tint for the texture bitmap.
| BitmapMaterial | ||
colorTransform : ColorTransform
Defines a colortransform for the texture bitmap.
| BitmapMaterial | ||
debug : Boolean
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines.
| ColorMaterial | ||
height : Number
Returns the height of the bitmapData being used as the material texture.
| BitmapMaterial | ||
id : int
Unique identifier
| Material | ||
offsetX : Number [write-only]
| BitmapMaskMaterial | ||
offsetY : Number [write-only]
| BitmapMaskMaterial | ||
repeat : Boolean
Determines if texture bitmap will tile in uv-space
| BitmapMaterial | ||
scaling : Number [write-only]
| BitmapMaskMaterial | ||
showNormals : Boolean
Displays the normals per face in pink lines.
| BitmapMaterial | ||
smooth : Boolean
Determines if texture bitmap is smoothed (bilinearly filtered) when drawn to screen.
| BitmapMaterial | ||
thickness : Number
Determines the thickness value of the wire
| WireframeMaterial | ||
visible : Boolean
Indicates whether the material is visible
| WireColorMaterial | ||
width : Number
Returns the width of the bitmapData being used as the material texture.
| BitmapMaterial | ||
wireAlpha : Number
Determines the alpha value of the wire
| WireframeMaterial | ||
wireColor : uint
24 bit color value representing the wire color
| WireframeMaterial |
Method | Defined by | ||
---|---|---|---|
BitmapMaskMaterial
(bitmap:BitmapData, init:Object = null)
Creates a new
BitmapMaskMaterial object. | BitmapMaskMaterial | ||
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| Material | ||
Duplicates the material properties to another material object.
| ColorMaterial | ||
getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
| BitmapMaterial | ||
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| Material |
offsetX | property |
offsetX:Number
[write-only]Implementation
public function set offsetX(value:Number):void
offsetY | property |
offsetY:Number
[write-only]Implementation
public function set offsetY(value:Number):void
scaling | property |
scaling:Number
[write-only]Implementation
public function set scaling(value:Number):void
BitmapMaskMaterial | () | constructor |
public function BitmapMaskMaterial(bitmap:BitmapData, init:Object = null)
Parameters
bitmap:BitmapData — The bitmapData object to be used as the material's texture.
|
|
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
offsetX:Number (default = 0) | |
offsetY:Number (default = 0) | |
scaling:Number (default = 1) |