Packagesandy.materials
Classpublic class OutlineMaterial
InheritanceOutlineMaterial Inheritance Material
SubclassesCelShadeMaterial

Displays the outline of a 3D shape in wireframe.

Material which draws only the external edges of the shape



Public Properties
 PropertyDefined by
 Inheritedattributes : MaterialAttributes
The attributes of this material.
Material
 Inheritedfilters : Array
The array of filters for this material.
Material
 Inheritedid : Number
The unique id of this material
Material
 InheritedlightingEnable : Boolean = false
Specify is the material can receive light and apply the lightAttributes if specified.
Material
 Inheritedmodified : Boolean
The modified state of this material.
Material
 Inheritedrepeat : Boolean
The repeat property (?).
Material
 Inheritedtype : MaterialType
The material type of this material.
Material
 InheriteduseVertexNormal : Boolean = false
Specify if the material use the vertex normal information Default value is set to false.
Material
Protected Properties
 PropertyDefined by
 Inheritedm_bModified : Boolean
Material
 Inheritedm_oType : MaterialType
Material
 Inherited_useLight : Boolean = false
Material
Public Methods
 MethodDefined by
  
OutlineMaterial(p_nThickness:uint = 1, p_nColor:uint = 0, p_nAlpha:Number = 1, p_oAttr:MaterialAttributes = null)
Creates a new OutlineMaterial.
OutlineMaterial
 Inherited
init(f:Polygon):void
Not used in this version of Sandy.
Material
  
renderPolygon(p_oScene:Scene3D, p_oPolygon:Polygon, p_mcContainer:Sprite):void
Renders this material on the face it dresses.
OutlineMaterial
Constructor detail
OutlineMaterial()constructor
public function OutlineMaterial(p_nThickness:uint = 1, p_nColor:uint = 0, p_nAlpha:Number = 1, p_oAttr:MaterialAttributes = null)

Creates a new OutlineMaterial.

Parameters
p_nThickness:uint (default = 1) — The thickness of the lines - Default 1
 
p_nColor:uint (default = 0) — The color of the lines - Default 0
 
p_nAlpha:Number (default = 1) — The alpha value in percent of full opacity ( 0 - 1 )
 
p_oAttr:MaterialAttributes (default = null)
Method detail
renderPolygon()method
public override function renderPolygon(p_oScene:Scene3D, p_oPolygon:Polygon, p_mcContainer:Sprite):void

Renders this material on the face it dresses.

Parameters
p_oScene:Scene3D — The current scene
 
p_oPolygon:Polygon — The face to be rendered
 
p_mcContainer:Sprite — The container to draw on