Packagelaya.webgl.canvas
Classpublic class Path
InheritancePath Inheritance Object



Public Properties
 PropertyDefined By
  closePath : Boolean = false
Path
  count : int = 0
Path
  _curGeomatry : IShape
Path
  dirty : Boolean = false
Path
  geomatrys : Vector.<IShape>
Path
  ib : IndexBuffer2D
Path
  offset : int = 0
Path
  _rect : Rectangle
Path
  tempArray : Array
Path
  vb : VertexBuffer2D
Path
  _x : Number = 0
Path
  _y : Number = 0
Path
Public Methods
 MethodDefined By
  
Path
  
addPoint(pointX:Number, pointY:Number):void
Path
  
drawLine(x:Number, y:Number, points:Array, width:Number, color:uint):IShape
Path
  
getEndPointX():Number
Path
  
getEndPointY():Number
Path
  
polygon(x:Number, y:Number, points:Array, color:uint, borderWidth:int, borderColor:*):IShape
Path
  
recover():void
Path
  
reset():void
Path
  
setGeomtry(shape:IShape):void
Path
  
update():void
Path
Property Detail
_curGeomatryproperty
public var _curGeomatry:IShape

_rectproperty 
public var _rect:Rectangle

_xproperty 
public var _x:Number = 0

_yproperty 
public var _y:Number = 0

closePathproperty 
public var closePath:Boolean = false

countproperty 
public var count:int = 0

dirtyproperty 
public var dirty:Boolean = false

geomatrysproperty 
public var geomatrys:Vector.<IShape>

ibproperty 
public var ib:IndexBuffer2D

offsetproperty 
public var offset:int = 0

tempArrayproperty 
public var tempArray:Array

vbproperty 
public var vb:VertexBuffer2D

Constructor Detail
Path()Constructor
public function Path()



Method Detail
addPoint()method
public function addPoint(pointX:Number, pointY:Number):void

Parameters

pointX:Number
 
pointY:Number

drawLine()method 
public function drawLine(x:Number, y:Number, points:Array, width:Number, color:uint):IShape

Parameters

x:Number
 
y:Number
 
points:Array
 
width:Number
 
color:uint

Returns
IShape
getEndPointX()method 
public function getEndPointX():Number

Returns
Number
getEndPointY()method 
public function getEndPointY():Number

Returns
Number
polygon()method 
public function polygon(x:Number, y:Number, points:Array, color:uint, borderWidth:int, borderColor:*):IShape

Parameters

x:Number
 
y:Number
 
points:Array
 
color:uint
 
borderWidth:int
 
borderColor:*

Returns
IShape
recover()method 
public function recover():void

reset()method 
public function reset():void

setGeomtry()method 
public function setGeomtry(shape:IShape):void

Parameters

shape:IShape

update()method 
public function update():void