Skip to main content

CCDrawNodeRetained

CCDrawNodeRetained

Cocos2D

Inheritance: System.Object → Cocos2D.CCNode

Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}

Constructors

CCDrawNodeRetained()

CCDrawNodeRetained()()

Properties

BlendFunc(Cocos2D.CCBlendFunc)
ShapeCount(System.Int32)
VertexCount(System.Int32)

Methods

AddDot(CCPoint, float, CCColor4F)

Cocos2D.CCShapeHandle AddDot(CCPoint, float, CCColor4F)(Cocos2D.CCPoint pos, System.Single radius, Cocos2D.CCColor4F color)
Parameters:
pos (Cocos2D.CCPoint)
radius (System.Single)
color (Cocos2D.CCColor4F)
Returns:
Cocos2D.CCShapeHandle

AddFilledCircle(CCPoint, float, CCColor4F, int)

Cocos2D.CCShapeHandle AddFilledCircle(CCPoint, float, CCColor4F, int)(Cocos2D.CCPoint center, System.Single radius, Cocos2D.CCColor4F color, System.Int32 segments)
Parameters:
center (Cocos2D.CCPoint)
radius (System.Single)
color (Cocos2D.CCColor4F)
segments (System.Int32)
Returns:
Cocos2D.CCShapeHandle

AddRect(CCRect, CCColor4F)

Cocos2D.CCShapeHandle AddRect(CCRect, CCColor4F)(Cocos2D.CCRect rect, Cocos2D.CCColor4F color)
Parameters:
rect (Cocos2D.CCRect)
color (Cocos2D.CCColor4F)
Returns:
Cocos2D.CCShapeHandle

AddSegment(CCPoint, CCPoint, float, CCColor4F)

Cocos2D.CCShapeHandle AddSegment(CCPoint, CCPoint, float, CCColor4F)(Cocos2D.CCPoint from, Cocos2D.CCPoint to, System.Single radius, Cocos2D.CCColor4F color)
Parameters:
from (Cocos2D.CCPoint)
to (Cocos2D.CCPoint)
radius (System.Single)
color (Cocos2D.CCColor4F)
Returns:
Cocos2D.CCShapeHandle

AddTriangle(CCPoint, CCPoint, CCPoint, CCColor4F)

Cocos2D.CCShapeHandle AddTriangle(CCPoint, CCPoint, CCPoint, CCColor4F)(Cocos2D.CCPoint a, Cocos2D.CCPoint b, Cocos2D.CCPoint c, Cocos2D.CCColor4F color)
Parameters:
a (Cocos2D.CCPoint)
b (Cocos2D.CCPoint)
c (Cocos2D.CCPoint)
color (Cocos2D.CCColor4F)
Returns:
Cocos2D.CCShapeHandle

Clear()

Clear()()

Draw()

Draw()()
Example

MoveShape(CCShapeHandle, CCPoint)

MoveShape(CCShapeHandle, CCPoint)(Cocos2D.CCShapeHandle handle, Cocos2D.CCPoint offset)
Parameters:
handle (Cocos2D.CCShapeHandle)
offset (Cocos2D.CCPoint)

RecolorShape(CCShapeHandle, CCColor4F)

RecolorShape(CCShapeHandle, CCColor4F)(Cocos2D.CCShapeHandle handle, Cocos2D.CCColor4F color)
Parameters:
handle (Cocos2D.CCShapeHandle)
color (Cocos2D.CCColor4F)

RemoveShape(CCShapeHandle)

RemoveShape(CCShapeHandle)(Cocos2D.CCShapeHandle handle)
Parameters:
handle (Cocos2D.CCShapeHandle)

SetShapeOpacity(CCShapeHandle, byte)

SetShapeOpacity(CCShapeHandle, byte)(Cocos2D.CCShapeHandle handle, System.Byte opacity)
Parameters:
handle (Cocos2D.CCShapeHandle)
opacity (System.Byte)

SetShapePosition(CCShapeHandle, CCPoint)

SetShapePosition(CCShapeHandle, CCPoint)(Cocos2D.CCShapeHandle handle, Cocos2D.CCPoint position)
Parameters:
handle (Cocos2D.CCShapeHandle)
position (Cocos2D.CCPoint)