Packagelaya.webgl.shapes
Classpublic class Polygon
InheritancePolygon Inheritance BasePoly Inheritance Object



Public Properties
 PropertyDefined By
 Inheritedcolor : uint
BasePoly
 Inheritedfill : Boolean = true
BasePoly
 Inheritedx : Number
BasePoly
Protected Properties
 PropertyDefined By
 InheritedmFloat32Array : Float32Array
BasePoly
 InheritedmUint16Array : Uint16Array
BasePoly
Public Methods
 MethodDefined By
  
Polygon(x:Number, y:Number, points:Array, color:uint, borderWidth:int, borderColor:uint)
Polygon
 Inherited
createLoopLine(p:Array, indices:Array, lineWidth:Number, len:Number, outVertex:Array = null, outIndex:Array = null):Array
BasePoly
  
getData(ib:Buffer2D, vb:Buffer2D, start:int):void
[override]
Polygon
  
needUpdate(mat:Matrix):Boolean
[override]
Polygon
  
rebuild(point:Array):void
[override]
Polygon
  
setMatrix(mat:Matrix):void
[override]
Polygon
Protected Methods
 MethodDefined By
 Inherited
createLine(p:Array, indices:Array, lineWidth:Number, len:Number):Array
BasePoly
 Inherited
createLine2(p:Array, indices:Array, lineWidth:Number, len:Number, outVertex:Array, indexCount:int):Array
BasePoly
 Inherited
sector(outVert:Array, outIndex:Array, start:int):void
BasePoly
Constructor Detail
Polygon()Constructor
public function Polygon(x:Number, y:Number, points:Array, color:uint, borderWidth:int, borderColor:uint)



Parameters
x:Number
 
y:Number
 
points:Array
 
color:uint
 
borderWidth:int
 
borderColor:uint
Method Detail
getData()method
override public function getData(ib:Buffer2D, vb:Buffer2D, start:int):void

Parameters

ib:Buffer2D
 
vb:Buffer2D
 
start:int

needUpdate()method 
override public function needUpdate(mat:Matrix):Boolean

Parameters

mat:Matrix

Returns
Boolean
rebuild()method 
override public function rebuild(point:Array):void

Parameters

point:Array

setMatrix()method 
override public function setMatrix(mat:Matrix):void

Parameters

mat:Matrix