51 bool drawContactNormals;
52 bool drawContactImpulses;
53 bool drawFrictionImpulses;
Color for debug drawing. Each value has the range [0,1].
Definition color.h:8
This struct holds callbacks you can implement to draw a box2d world.
Definition debug_draw.h:10
void(* DrawSolidPolygon)(const b2Vec2 *vertices, int vertexCount, b2Color color, void *context)
Draw a solid closed polygon provided in CCW order.
Definition debug_draw.h:15
void(* DrawCircle)(b2Vec2 center, float radius, b2Color color, void *context)
Draw a circle.
Definition debug_draw.h:21
void(* DrawPoint)(b2Vec2 p, float size, b2Color color, void *context)
Draw a point.
Definition debug_draw.h:40
void(* DrawPolygon)(const b2Vec2 *vertices, int vertexCount, b2Color color, void *context)
Draw a closed polygon provided in CCW order.
Definition debug_draw.h:12
void(* DrawString)(b2Vec2 p, const char *s, void *context)
Draw a string.
Definition debug_draw.h:43
void(* DrawCapsule)(b2Vec2 p1, b2Vec2 p2, float radius, b2Color color, void *context)
Draw a capsule.
Definition debug_draw.h:27
void(* DrawSolidCapsule)(b2Vec2 p1, b2Vec2 p2, float radius, b2Color color, void *context)
Draw a solid capsule.
Definition debug_draw.h:30
void(* DrawSolidCircle)(b2Vec2 center, float radius, b2Vec2 axis, b2Color color, void *context)
Draw a solid circle.
Definition debug_draw.h:24
void(* DrawSegment)(b2Vec2 p1, b2Vec2 p2, b2Color color, void *context)
Draw a line segment.
Definition debug_draw.h:33
void(* DrawTransform)(b2Transform xf, void *context)
Definition debug_draw.h:37
void(* DrawRoundedPolygon)(const b2Vec2 *vertices, int vertexCount, float radius, b2Color lineColor, b2Color fillColor, void *context)
Draw a rounded polygon provided in CCW order.
Definition debug_draw.h:18
types used by the Box2D API