public DrawPrimitivesRoundRectTest() { TouchMode = CCTouchMode.OneByOne; TouchEnabled = true; RoundRectPrimitive r = new RoundRectPrimitive(new CCSize(180f, 180f), 5); r.Color = CCColor3B.Yellow; r.Position = CCDirector.SharedDirector.WinSize.Center; r.AnchorPoint = CCPoint.AnchorMiddle; AddChild(r, 0, kTagRoundRect); }
public RoundRectSprite(CCSize size, int radius, int cornerSegments) { _Rect = new RoundRectPrimitive(size, radius, cornerSegments); }
public RoundRectSprite(CCSize size, int radius) { _Rect = new RoundRectPrimitive(size, radius); }