Skip to main content

CCBox2dDraw

CCBox2dDraw

Cocos2D

Inheritance: System.Object → Box2D.Common.b2Draw

Constructors

CCBox2dDraw(string)

CCBox2dDraw(string)(System.String spriteFontName)
Parameters:
spriteFontName (System.String)

Fields

CircleSegments(System.Int32)
TextColor(Microsoft.Xna.Framework.Color)

Methods

Begin()

Begin()()

DrawAABB(b2AABB, b2Color)

DrawAABB(b2AABB, b2Color)(Box2D.Collision.b2AABB aabb, Box2D.Common.b2Color p1)
Parameters:
aabb (Box2D.Collision.b2AABB)
p1 (Box2D.Common.b2Color)

DrawCircle(b2Vec2, float, b2Color)

DrawCircle(b2Vec2, float, b2Color)(Box2D.Common.b2Vec2 center, System.Single radius, Box2D.Common.b2Color color)

Draw a circle.

Parameters:
center (Box2D.Common.b2Vec2)
radius (System.Single)
color (Box2D.Common.b2Color)
Example

DrawPoint(b2Vec2, float, b2Color)

DrawPoint(b2Vec2, float, b2Color)(Box2D.Common.b2Vec2 p, System.Single size, Box2D.Common.b2Color color)
Parameters:
p (Box2D.Common.b2Vec2)
size (System.Single)
color (Box2D.Common.b2Color)

DrawPolygon(b2Vec2[], int, b2Color)

DrawPolygon(b2Vec2[], int, b2Color)(Box2D.Common.b2Vec2[] vertices, System.Int32 vertexCount, Box2D.Common.b2Color color)

Draw a closed polygon provided in CCW order.

Parameters:
vertices (Box2D.Common.b2Vec2[])
vertexCount (System.Int32)
color (Box2D.Common.b2Color)
Example

DrawSegment(b2Vec2, b2Vec2, b2Color)

DrawSegment(b2Vec2, b2Vec2, b2Color)(Box2D.Common.b2Vec2 p1, Box2D.Common.b2Vec2 p2, Box2D.Common.b2Color color)

Draw a line segment.

Parameters:
p1 (Box2D.Common.b2Vec2)
p2 (Box2D.Common.b2Vec2)
color (Box2D.Common.b2Color)
Example

DrawSolidCircle(b2Vec2, float, b2Vec2, b2Color)

DrawSolidCircle(b2Vec2, float, b2Vec2, b2Color)(Box2D.Common.b2Vec2 center, System.Single radius, Box2D.Common.b2Vec2 axis, Box2D.Common.b2Color color)

Draw a solid circle.

Parameters:
center (Box2D.Common.b2Vec2)
radius (System.Single)
axis (Box2D.Common.b2Vec2)
color (Box2D.Common.b2Color)
Example

DrawSolidPolygon(b2Vec2[], int, b2Color)

DrawSolidPolygon(b2Vec2[], int, b2Color)(Box2D.Common.b2Vec2[] vertices, System.Int32 vertexCount, Box2D.Common.b2Color color)

Draw a solid closed polygon provided in CCW order.

Parameters:
vertices (Box2D.Common.b2Vec2[])
vertexCount (System.Int32)
color (Box2D.Common.b2Color)
Example

DrawString(int, int, string, params object[])

DrawString(int, int, string, params object[])(System.Int32 x, System.Int32 y, System.String format, System.Object[] objects)
Parameters:
x (System.Int32)
y (System.Int32)
format (System.String)
objects (System.Object[])

DrawTransform(b2Transform)

DrawTransform(b2Transform)(Box2D.Common.b2Transform xf)

Draw a transform. Choose your own length scale. @param xf a transform.

Parameters:
xf (Box2D.Common.b2Transform)
Example

End()

End()()