| Package | away3d.materials |
| Interface | public interface IUVMaterial extends IMaterial |
| Implementors | AnimatedBitmapMaterial, BitmapFileMaterial, BitmapMaterial, DiffuseDot3Shader, MovieMaterial, TransformBitmapMaterial, WhiteShadingBitmapMaterial |
| Property | Defined by | ||
|---|---|---|---|
| bitmap : BitmapData [read-only]
Returns the bitmapData object being used as the material texture.
| IUVMaterial | ||
| height : Number [read-only]
Returns the height of the bitmapData being used as the material texture.
| IUVMaterial | ||
![]() | visible : Boolean
Indicates whether the material is visible
| IMaterial | |
| width : Number [read-only]
Returns the width of the bitmapData being used as the material texture.
| IUVMaterial | ||
| Method | Defined by | ||
|---|---|---|---|
|
addOnResize(listener:Function):void
Default method for adding a materialresize event listener
| IUVMaterial | ||
|
getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
| IUVMaterial | ||
|
removeOnResize(listener:Function):void
Default method for removing a materialresize event listener
| IUVMaterial | ||
| bitmap | property |
bitmap:BitmapData [read-only]Returns the bitmapData object being used as the material texture.
Implementation public function get bitmap():BitmapData
| height | property |
height:Number [read-only]Returns the height of the bitmapData being used as the material texture.
Implementation public function get height():Number
| width | property |
width:Number [read-only]Returns the width of the bitmapData being used as the material texture.
Implementation public function get width():Number
| addOnResize | () | method |
public function addOnResize(listener:Function):void
Default method for adding a materialresize event listener
Parameterslistener:Function — The listener function
|
| getPixel32 | () | method |
public function getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
Parametersu:Number — The u (horizontal) texture coordinate.
|
|
v:Number — The v (verical) texture coordinate.
|
uint — The argb pixel value.
|
| removeOnResize | () | method |
public function removeOnResize(listener:Function):void
Default method for removing a materialresize event listener
Parameterslistener:Function — The listener function
|