Packagede.nulldesign.nd3d.material
Classpublic class BitmapMaterial
InheritanceBitmapMaterial Inheritance Material
SubclassesReflectBitmapMaterial, SWFMaterial

BitmapMaterial, used to display textured 3d objects



Public Properties
 PropertyDefined by
 Inheritedadditive : Boolean = false
Material
  alpha : Number
[write-only]
BitmapMaterial
 InheritedcalculateLights : Boolean = true
Material
  color : uint
[write-only]
BitmapMaterial
  colorTransform : ColorTransform
BitmapMaterial
 InheritedcustomRenderer : TextureRenderer
Material
 InheriteddoubleSided : Boolean = false
Material
 InheritedisInteractive : Boolean = false
Material
 InheritedisSprite : Boolean
Material
 Inheritedsmoothed : Boolean
Material
  texture : BitmapData
BitmapMaterial
Protected Properties
 PropertyDefined by
 Inherited_alpha : Number = 1
Material
 Inherited_color : uint = 0xffffff
Material
  _ct : ColorTransform
BitmapMaterial
  isDirty : Boolean
BitmapMaterial
 Inherited_texture : BitmapData = null
Material
  transformedTexture : BitmapData
BitmapMaterial
Public Methods
 MethodDefined 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
Protected Methods
 MethodDefined by
  
getDefaultTransform():ColorTransform
BitmapMaterial
Property detail
alphaproperty
alpha:Number  [write-only]Implementation
    public function set alpha(value:Number):void
colorproperty 
color:uint  [write-only]Implementation
    public function set color(value:uint):void
colorTransformproperty 
colorTransform:ColorTransform  [read-write]Implementation
    public function get colorTransform():ColorTransform
    public function set colorTransform(value:ColorTransform):void
_ctproperty 
protected var _ct:ColorTransform
isDirtyproperty 
protected var isDirty:Boolean
textureproperty 
texture:BitmapData  [read-write]Implementation
    public function get texture():BitmapData
    public function set texture(value:BitmapData):void
transformedTextureproperty 
protected var transformedTexture:BitmapData
Constructor detail
BitmapMaterial()constructor
public function BitmapMaterial(texture:BitmapData = null, smoothed:Boolean = false, calculateLights:Boolean = false, doubleSided:Boolean = false, additive:Boolean = false)

Constructor of class BitmapMaterial

Parameters
texture: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
Method detail
clone()method
public override function clone():Material

Returns
Material
getDefaultTransform()method 
protected function getDefaultTransform():ColorTransform

Returns
ColorTransform
update()method 
public function update():void