22 #include <Box2D/Common/b2Math.h>
28 b2Color(float32 r, float32 g, float32 b) : r(r), g(g), b(b) {}
29 void Set(float32 ri, float32 gi, float32 bi) { r = ri; g = gi; b = bi; }
draw center of mass frame
Definition: b2Draw.h:48
virtual void DrawSolidCircle(const b2Vec2 ¢er, float32 radius, const b2Vec2 &axis, const b2Color &color)=0
Draw a solid circle.
uint32 GetFlags() const
Get the drawing flags.
Definition: b2Draw.cpp:31
virtual void DrawSegment(const b2Vec2 &p1, const b2Vec2 &p2, const b2Color &color)=0
Draw a line segment.
Color for debug drawing. Each value has the range [0,1].
Definition: b2Draw.h:25
draw broad-phase pairs
Definition: b2Draw.h:47
void SetFlags(uint32 flags)
Set the drawing flags.
Definition: b2Draw.cpp:26
draw shapes
Definition: b2Draw.h:44
virtual void DrawCircle(const b2Vec2 ¢er, float32 radius, const b2Color &color)=0
Draw a circle.
virtual void DrawSolidPolygon(const b2Vec2 *vertices, int32 vertexCount, const b2Color &color)=0
Draw a solid closed polygon provided in CCW order.
void ClearFlags(uint32 flags)
Clear flags from the current flags.
Definition: b2Draw.cpp:41
virtual void DrawPolygon(const b2Vec2 *vertices, int32 vertexCount, const b2Color &color)=0
Draw a closed polygon provided in CCW order.
draw joint connections
Definition: b2Draw.h:45
draw axis aligned bounding boxes
Definition: b2Draw.h:46
A 2D column vector.
Definition: b2Math.h:53
virtual void DrawTransform(const b2Transform &xf)=0
void AppendFlags(uint32 flags)
Append flags to the current flags.
Definition: b2Draw.cpp:36