| Package | away3d.materials |
| Interface | public interface IUVMaterial extends IMaterial |
| Implementors | AnimatedBitmapMaterial, BitmapFileMaterial, BitmapMaskMaterial, BitmapMaterial, DiffuseDot3Shader, MovieMaterial, SpecularDot3Shader, 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 | ||
![]() | id : int
Unique identifier
| IMaterial | |
![]() | 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 | ||
|---|---|---|---|
![]() |
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| IMaterial | |
|
Clears facematerial value objects when bitmap requires updating
| IUVMaterial | ||
| IUVMaterial | |||
|
getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
| IUVMaterial | ||
|
Invalidates facematerial value objects when texturemapping requires updating
| IUVMaterial | ||
![]() |
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| IMaterial | |
![]() |
Called once per render loop when material is visible.
| IMaterial | |
| 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
| clearFaces | () | method |
public function clearFaces(source:Object3D = null, view:View3D = null):void
Clears facematerial value objects when bitmap requires updating
Parameterssource:Object3D (default = null) — [optional] The parent 3d object of the face.
|
|
view:View3D (default = null) — [optional] The view rendering the draw triangle.
|
See also
| getFaceMaterialVO | () | method |
public function getFaceMaterialVO(faceVO:FaceVO, source:Object3D = null, view:View3D = null):FaceMaterialVO
faceVO:FaceVO |
|
source:Object3D (default = null) |
|
view:View3D (default = null) |
FaceMaterialVO |
| 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.
|
| invalidateFaces | () | method |
public function invalidateFaces(source:Object3D = null, view:View3D = null):void
Invalidates facematerial value objects when texturemapping requires updating
Parameterssource:Object3D (default = null) — [optional] The parent 3d object of the face.
|
|
view:View3D (default = null) — [optional] The view rendering the draw triangle.
|
See also