Packagealternativa.engine3d.materials
Classpublic class FillMaterial
InheritanceFillMaterial Inheritance SurfaceMaterial Inheritance Material

Material that fills a face with a solid fill



Public Properties
 PropertyDefined by
 Inheritedalpha : Number
material opacity
Material
 InheritedblendMode : String
Color blending mode.
Material
  color : uint
Fill color.
FillMaterial
 Inheritedsurface : Surface
Surface material.
SurfaceMaterial
  wireColor : uint
Whire line color.
FillMaterial
  wireThickness : Number
Wire line thickness.
FillMaterial
Public Methods
 MethodDefined by
  
FillMaterial(color:uint, alpha:Number = 1, blendMode:String, wireThickness:Number = -1, wireColor:uint = 0)
Create an instance of class.
FillMaterial
  
Clone material.
FillMaterial
Protected Methods
 MethodDefined by
 Inherited
markToChange():void
Marks a material as changed, sending a signal to the scene.
SurfaceMaterial
Property detail
colorproperty
color:uint  [read-write]

Fill color.

Implementation
    public function get color():uint
    public function set color(value:uint):void
wireColorproperty 
wireColor:uint  [read-write]

Whire line color.

Implementation
    public function get wireColor():uint
    public function set wireColor(value:uint):void
wireThicknessproperty 
wireThickness:Number  [read-write]

Wire line thickness. Lines are not drawn if thickness is negative.

Implementation
    public function get wireThickness():Number
    public function set wireThickness(value:Number):void
Constructor detail
FillMaterial()constructor
public function FillMaterial(color:uint, alpha:Number = 1, blendMode:String, wireThickness:Number = -1, wireColor:uint = 0)

Create an instance of class.

Parameters
color:uintfill color
 
alpha:Number (default = 1)transparency
 
blendMode:Stringcolor blending mode
 
wireThickness:Number (default = -1)line's thickness
 
wireColor:uint (default = 0)line's color
Method detail
clone()method
public override function clone():Material

Clone material.

Returns
Materiala clone of the material object