22 #include <Box2D/Common/b2Math.h> 28 b2Color(float32 r, float32 g, float32 b, float32 a = 1.0f) : r(r), g(g), b(b), a(a) {}
29 void Set(float32 ri, float32 gi, float32 bi, float32 ai = 1.0f) { r = ri; g = gi; b = bi; a = ai; }
48 e_centerOfMassBit = 0x0010
52 void SetFlags(uint32 flags);
55 uint32 GetFlags()
const;
58 void AppendFlags(uint32 flags);
61 void ClearFlags(uint32 flags);
64 virtual void DrawPolygon(
const b2Vec2* vertices, int32 vertexCount,
const b2Color& color) = 0;
67 virtual void DrawSolidPolygon(
const b2Vec2* vertices, int32 vertexCount,
const b2Color& color) = 0;
70 virtual void DrawCircle(
const b2Vec2& center, float32 radius,
const b2Color& color) = 0;
73 virtual void DrawSolidCircle(
const b2Vec2& center, float32 radius,
const b2Vec2& axis,
const b2Color& color) = 0;
80 virtual void DrawTransform(
const b2Transform& xf) = 0;
Color for debug drawing. Each value has the range [0,1].
Definition: b2Draw.h:25
A 2D column vector.
Definition: b2Math.h:53