Skip to main content

CCDrawingPrimitives

CCDrawingPrimitives

Cocos2D

Inheritance: System.Object

Constructors

CCDrawingPrimitives()

CCDrawingPrimitives()()

Properties

DefaultColor(Cocos2D.CCColor4B)

Methods

Begin()

Begin()()

DrawArc(CCRect, int, int, CCColor4B)

DrawArc(CCRect, int, int, CCColor4B)(Cocos2D.CCRect rect, System.Int32 startAngle, System.Int32 sweepAngle, Cocos2D.CCColor4B color)
Parameters:
rect (Cocos2D.CCRect)
startAngle (System.Int32)
sweepAngle (System.Int32)
color (Cocos2D.CCColor4B)

DrawArc(int, int, int, int, int, int, CCColor4B)

DrawArc(int, int, int, int, int, int, CCColor4B)(System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height, System.Int32 startAngle, System.Int32 sweepAngle, Cocos2D.CCColor4B color)
Parameters:
x (System.Int32)
y (System.Int32)
width (System.Int32)
height (System.Int32)
startAngle (System.Int32)
sweepAngle (System.Int32)
color (Cocos2D.CCColor4B)

DrawCardinalSpline(List, float, int)

DrawCardinalSpline(List, float, int)(System.Collections.Generic.ListCocos2D.CCPoint config, System.Single tension, System.Int32 segments)
Parameters:
config (System.Collections.Generic.ListCocos2D.CCPoint)
tension (System.Single)
segments (System.Int32)

DrawCatmullRom(List, int)

DrawCatmullRom(List, int)(System.Collections.Generic.ListCocos2D.CCPoint points, System.Int32 segments)
Parameters:
points (System.Collections.Generic.ListCocos2D.CCPoint)
segments (System.Int32)

DrawCircle(CCPoint, float, float, int, bool, CCColor4B)

DrawCircle(CCPoint, float, float, int, bool, CCColor4B)(Cocos2D.CCPoint center, System.Single radius, System.Single angle, System.Int32 segments, System.Boolean drawLineToCenter, Cocos2D.CCColor4B color)
Parameters:
center (Cocos2D.CCPoint)
radius (System.Single)
angle (System.Single) - The amount of the circle to draw, in radiians
segments (System.Int32)
drawLineToCenter (System.Boolean)
color (Cocos2D.CCColor4B)
Example

DrawCubicBezier(CCPoint, CCPoint, CCPoint, CCPoint, int, CCColor4B)

DrawCubicBezier(CCPoint, CCPoint, CCPoint, CCPoint, int, CCColor4B)(Cocos2D.CCPoint origin, Cocos2D.CCPoint control1, Cocos2D.CCPoint control2, Cocos2D.CCPoint destination, System.Int32 segments, Cocos2D.CCColor4B color)

draws a cubic bezier path @since v0.8

Parameters:
origin (Cocos2D.CCPoint)
control1 (Cocos2D.CCPoint)
control2 (Cocos2D.CCPoint)
destination (Cocos2D.CCPoint)
segments (System.Int32)
color (Cocos2D.CCColor4B)
Example

DrawEllips(int, int, int, int, CCColor4B)

DrawEllips(int, int, int, int, CCColor4B)(System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height, Cocos2D.CCColor4B color)
Parameters:
x (System.Int32)
y (System.Int32)
width (System.Int32)
height (System.Int32)
color (Cocos2D.CCColor4B)

DrawEllipse(CCRect, CCColor4B)

DrawEllipse(CCRect, CCColor4B)(Cocos2D.CCRect rect, Cocos2D.CCColor4B color)
Parameters:
rect (Cocos2D.CCRect)
color (Cocos2D.CCColor4B)

DrawLine(CCPoint, CCPoint, CCColor4B)

DrawLine(CCPoint, CCPoint, CCColor4B)(Cocos2D.CCPoint origin, Cocos2D.CCPoint destination, Cocos2D.CCColor4B color)
Parameters:
origin (Cocos2D.CCPoint)
destination (Cocos2D.CCPoint)
color (Cocos2D.CCColor4B)

DrawPie(CCRect, int, int, CCColor4B)

DrawPie(CCRect, int, int, CCColor4B)(Cocos2D.CCRect rect, System.Int32 startAngle, System.Int32 sweepAngle, Cocos2D.CCColor4B color)
Parameters:
rect (Cocos2D.CCRect)
startAngle (System.Int32)
sweepAngle (System.Int32)
color (Cocos2D.CCColor4B)

DrawPie(int, int, int, int, int, int, CCColor4B)

DrawPie(int, int, int, int, int, int, CCColor4B)(System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height, System.Int32 startAngle, System.Int32 sweepAngle, Cocos2D.CCColor4B color)
Parameters:
x (System.Int32)
y (System.Int32)
width (System.Int32)
height (System.Int32)
startAngle (System.Int32)
sweepAngle (System.Int32)
color (Cocos2D.CCColor4B)

DrawPoint(CCPoint)

DrawPoint(CCPoint)(Cocos2D.CCPoint point)
Parameters:
point (Cocos2D.CCPoint)

DrawPoint(CCPoint, float)

DrawPoint(CCPoint, float)(Cocos2D.CCPoint point, System.Single size)
Parameters:
point (Cocos2D.CCPoint)
size (System.Single)

DrawPoint(CCPoint, float, CCColor4B)

DrawPoint(CCPoint, float, CCColor4B)(Cocos2D.CCPoint p, System.Single size, Cocos2D.CCColor4B color)
Parameters:
p (Cocos2D.CCPoint)
size (System.Single)
color (Cocos2D.CCColor4B)

DrawPoints(CCPoint[], int, float, CCColor4B)

DrawPoints(CCPoint[], int, float, CCColor4B)(Cocos2D.CCPoint[] points, System.Int32 numberOfPoints, System.Single size, Cocos2D.CCColor4B color)
Parameters:
points (Cocos2D.CCPoint[])
numberOfPoints (System.Int32)
size (System.Single)
color (Cocos2D.CCColor4B)

DrawPoints(CCPoint[], float, CCColor4B)

DrawPoints(CCPoint[], float, CCColor4B)(Cocos2D.CCPoint[] points, System.Single size, Cocos2D.CCColor4B color)
Parameters:
points (Cocos2D.CCPoint[])
size (System.Single)
color (Cocos2D.CCColor4B)

DrawPoly(CCPoint[], int, bool, CCColor4B)

DrawPoly(CCPoint[], int, bool, CCColor4B)(Cocos2D.CCPoint[] vertices, System.Int32 numOfVertices, System.Boolean closePolygon, Cocos2D.CCColor4B color)

draws a poligon given a pointer to CCPoint coordiantes and the number of vertices measured in points. The polygon can be closed or open

Parameters:
vertices (Cocos2D.CCPoint[])
numOfVertices (System.Int32)
closePolygon (System.Boolean)
color (Cocos2D.CCColor4B)
Example

DrawPoly(CCPoint[], int, bool, bool, CCColor4B)

DrawPoly(CCPoint[], int, bool, bool, CCColor4B)(Cocos2D.CCPoint[] vertices, System.Int32 numOfVertices, System.Boolean closePolygon, System.Boolean fill, Cocos2D.CCColor4B color)

draws a polygon given a pointer to CCPoint coordiantes and the number of vertices measured in points. The polygon can be closed or open and optionally filled with current GL color

Parameters:
vertices (Cocos2D.CCPoint[])
numOfVertices (System.Int32)
closePolygon (System.Boolean)
fill (System.Boolean)
color (Cocos2D.CCColor4B)
Example

DrawQuadBezier(CCPoint, CCPoint, CCPoint, int, CCColor4B)

DrawQuadBezier(CCPoint, CCPoint, CCPoint, int, CCColor4B)(Cocos2D.CCPoint origin, Cocos2D.CCPoint control, Cocos2D.CCPoint destination, System.Int32 segments, Cocos2D.CCColor4B color)
Parameters:
origin (Cocos2D.CCPoint)
control (Cocos2D.CCPoint)
destination (Cocos2D.CCPoint)
segments (System.Int32)
color (Cocos2D.CCColor4B)

DrawRect(CCRect, CCColor4B)

DrawRect(CCRect, CCColor4B)(Cocos2D.CCRect rect, Cocos2D.CCColor4B color)
Parameters:
rect (Cocos2D.CCRect)
color (Cocos2D.CCColor4B)

DrawSolidPoly(CCPoint[], int, CCColor4B)

DrawSolidPoly(CCPoint[], int, CCColor4B)(Cocos2D.CCPoint[] vertices, System.Int32 count, Cocos2D.CCColor4B color)
Parameters:
vertices (Cocos2D.CCPoint[])
count (System.Int32)
color (Cocos2D.CCColor4B)

DrawSolidPoly(CCPoint[], int, CCColor4B, bool)

DrawSolidPoly(CCPoint[], int, CCColor4B, bool)(Cocos2D.CCPoint[] vertices, System.Int32 count, Cocos2D.CCColor4B color, System.Boolean outline)
Parameters:
vertices (Cocos2D.CCPoint[])
count (System.Int32)
color (Cocos2D.CCColor4B)
outline (System.Boolean)

DrawSolidRect(CCPoint, CCPoint, CCColor4B)

DrawSolidRect(CCPoint, CCPoint, CCColor4B)(Cocos2D.CCPoint origin, Cocos2D.CCPoint destination, Cocos2D.CCColor4B color)
Parameters:
origin (Cocos2D.CCPoint)
destination (Cocos2D.CCPoint)
color (Cocos2D.CCColor4B)

End()

End()()

Init(GraphicsDevice)

Init(GraphicsDevice)(Microsoft.Xna.Framework.Graphics.GraphicsDevice graphics)
Parameters:
graphics (Microsoft.Xna.Framework.Graphics.GraphicsDevice)