Package | starling.display.graphics |
Class | public class TriangleFan |
Inheritance | TriangleFan ![]() ![]() ![]() ![]() |
Method | Defined By | ||
---|---|---|---|
TriangleFan | |||
![]() | addEventListener(type:String, listener:Function):void [override] Registers an event listener at a certain object. | DisplayObject | |
addVertex(x:Number, y:Number, u:Number = 0, v:Number = 0, r:Number = 1, g:Number = 1, b:Number = 1, a:Number = 1):void | TriangleFan | ||
![]() | alignPivot(horizontalAlign:String = center, verticalAlign:String = center):void Moves the pivot point to a certain position within the local coordinate system
of the object. | DisplayObject | |
clear():void | TriangleFan | ||
![]() | dispatchEvent(event:Event):void Dispatches an event to all objects that have registered listeners for its type. | EventDispatcher | |
![]() | dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void Dispatches an event with the given parameters to all objects that have registered
listeners for the given type. | EventDispatcher | |
![]() | dispose():void [override] | Graphic | |
![]() | drawToBitmapData(out:BitmapData = null, color:uint = 0x0, alpha:Number = 0.0):BitmapData Draws the object into a BitmapData object. | DisplayObject | |
![]() | getBounds(targetSpace:DisplayObject, resultRect:Rectangle = null):Rectangle [override] | Graphic | |
![]() | getTransformationMatrix(targetSpace:DisplayObject, out:Matrix = null):Matrix Creates a matrix that represents the transformation from the local coordinate system
to another. | DisplayObject | |
![]() | getTransformationMatrix3D(targetSpace:DisplayObject, out:Matrix3D = null):Matrix3D Creates a matrix that represents the transformation from the local coordinate system
to another. | DisplayObject | |
![]() | globalToLocal(globalPoint:Point, out:Point = null):Point Transforms a point from global (stage) coordinates to the local coordinate system. | DisplayObject | |
![]() | globalToLocal3D(globalPoint:Point, out:Vector3D = null):Vector3D Transforms a point from global (stage) coordinates to the 3D local coordinate system. | DisplayObject | |
![]() | hasEventListener(type:String, listener:Function = null):Boolean If called with one argument, figures out if there are any listeners registered for
the given event type. | EventDispatcher | |
![]() | hitTest(localPoint:Point):DisplayObject [override] Returns the object that is found topmost beneath a point in local coordinates, or nil if
the test fails. | Graphic | |
![]() | hitTestMask(localPoint:Point):Boolean Checks if a certain point is inside the display object's mask. | DisplayObject | |
![]() | local3DToGlobal(localPoint:Vector3D, out:Point = null):Point Transforms a 3D point from the local coordinate system to global (stage) coordinates. | DisplayObject | |
![]() | localToGlobal(localPoint:Point, out:Point = null):Point Transforms a point from the local coordinate system to global (stage) coordinates. | DisplayObject | |
modifyVertexPosition(index:int, x:Number, y:Number):void | TriangleFan | ||
![]() | removeEventListener(type:String, listener:Function):void [override] Removes an event listener from the object. | DisplayObject | |
![]() | removeEventListeners(type:String = null):void [override] Removes all event listeners with a certain type, or all of them if type is null. | DisplayObject | |
![]() | removeFromParent(dispose:Boolean = false):void Removes the object from its parent, if it has one, and optionally disposes it. | DisplayObject | |
![]() | [override] | Graphic | |
![]() | setRequiresRedraw():void Forces the object to be redrawn in the next frame. | DisplayObject | |
![]() | shapeHitTest(stageX:Number, stageY:Number):Boolean | Graphic | |
![]() | validateNow():void | Graphic |
Method | Defined By | ||
---|---|---|---|
![]() | applyUVMatrix():void | Graphic | |
buildGeometry():void [override] | TriangleFan | ||
![]() | onGraphicLostContext():void | Graphic | |
![]() | setGeometryInvalid():void | Graphic | |
![]() | shapeHitTestLocalInternal(localX:Number, localY:Number):Boolean | Graphic |
TriangleFan | () | Constructor |
public function TriangleFan()
addVertex | () | method |
public function addVertex(x:Number, y:Number, u:Number = 0, v:Number = 0, r:Number = 1, g:Number = 1, b:Number = 1, a:Number = 1):void
Parameters
x:Number | |
y:Number | |
u:Number (default = 0 )
| |
v:Number (default = 0 )
| |
r:Number (default = 1 )
| |
g:Number (default = 1 )
| |
b:Number (default = 1 )
| |
a:Number (default = 1 )
|
buildGeometry | () | method |
override protected function buildGeometry():void
clear | () | method |
public function clear():void
modifyVertexPosition | () | method |
public function modifyVertexPosition(index:int, x:Number, y:Number):void
Parameters
index:int | |
x:Number | |
y:Number |