| Package | de.nulldesign.nd3d.material |
| Class | public class BitmapMaterial |
| Inheritance | BitmapMaterial Material |
| Subclasses | ReflectBitmapMaterial, SWFMaterial |
| Property | Defined by | ||
|---|---|---|---|
![]() | additive : Boolean = false | Material | |
| alpha : Number [write-only]
| BitmapMaterial | ||
![]() | calculateLights : Boolean = true | Material | |
| color : uint [write-only]
| BitmapMaterial | ||
| colorTransform : ColorTransform | BitmapMaterial | ||
![]() | customRenderer : TextureRenderer | Material | |
![]() | doubleSided : Boolean = false | Material | |
![]() | isInteractive : Boolean = false | Material | |
![]() | isSprite : Boolean | Material | |
![]() | smoothed : Boolean | Material | |
| texture : BitmapData | BitmapMaterial | ||
| Property | Defined by | ||
|---|---|---|---|
![]() | _alpha : Number = 1 | Material | |
![]() | _color : uint = 0xffffff | Material | |
| _ct : ColorTransform | BitmapMaterial | ||
| isDirty : Boolean | BitmapMaterial | ||
![]() | _texture : BitmapData = null | Material | |
| transformedTexture : BitmapData | BitmapMaterial | ||
| Method | Defined by | ||
|---|---|---|---|
|
BitmapMaterial(texture:BitmapData = null, smoothed:Boolean = false, calculateLights:Boolean = false, doubleSided:Boolean = false, additive:Boolean = false)
Constructor of class BitmapMaterial
| BitmapMaterial | ||
| BitmapMaterial | |||
|
update():void
| BitmapMaterial | ||
| Method | Defined by | ||
|---|---|---|---|
|
getDefaultTransform():ColorTransform
| BitmapMaterial | ||
| alpha | property |
alpha:Number [write-only]Implementation
public function set alpha(value:Number):void
| color | property |
color:uint [write-only]Implementation
public function set color(value:uint):void
| colorTransform | property |
colorTransform:ColorTransform [read-write]Implementation
public function get colorTransform():ColorTransform
public function set colorTransform(value:ColorTransform):void
| _ct | property |
protected var _ct:ColorTransform
| isDirty | property |
protected var isDirty:Boolean
| texture | property |
texture:BitmapData [read-write]Implementation
public function get texture():BitmapData
public function set texture(value:BitmapData):void
| transformedTexture | property |
protected var transformedTexture:BitmapData
| BitmapMaterial | () | constructor |
public function BitmapMaterial(texture:BitmapData = null, smoothed:Boolean = false, calculateLights:Boolean = false, doubleSided:Boolean = false, additive:Boolean = false)Constructor of class BitmapMaterial
Parameterstexture:BitmapData (default = null) |
|
smoothed:Boolean (default = false) — the bitmap should be drawn smoothed or not
|
|
calculateLights:Boolean (default = false) — lights be calculated for this texture
|
|
doubleSided:Boolean (default = false) — this material be drawn on backfaces as well
|
|
additive:Boolean (default = false) — additive blending for this material
|
| clone | () | method |
| getDefaultTransform | () | method |
protected function getDefaultTransform():ColorTransform
Returns
ColorTransform |
| update | () | method |
public function update():void