22 #include <Box2D/Common/b2Math.h> 28 b2Color(float32 rIn, float32 gIn, float32 bIn, float32 aIn = 1.0f)
30 r = rIn; g = gIn; b = bIn; a = aIn;
33 void Set(float32 rIn, float32 gIn, float32 bIn, float32 aIn = 1.0f)
35 r = rIn; g = gIn; b = bIn; a = aIn;
56 e_centerOfMassBit = 0x0010
60 void SetFlags(uint32 flags);
63 uint32 GetFlags()
const;
66 void AppendFlags(uint32 flags);
69 void ClearFlags(uint32 flags);
72 virtual void DrawPolygon(
const b2Vec2* vertices, int32 vertexCount,
const b2Color& color) = 0;
75 virtual void DrawSolidPolygon(
const b2Vec2* vertices, int32 vertexCount,
const b2Color& color) = 0;
78 virtual void DrawCircle(
const b2Vec2& center, float32 radius,
const b2Color& color) = 0;
81 virtual void DrawSolidCircle(
const b2Vec2& center, float32 radius,
const b2Vec2& axis,
const b2Color& color) = 0;
88 virtual void DrawTransform(
const b2Transform& xf) = 0;
91 virtual void DrawPoint(
const b2Vec2& p, float32 size,
const b2Color& color) = 0;
Color for debug drawing. Each value has the range [0,1].
Definition: b2Draw.h:25
A 2D column vector.
Definition: b2Math.h:53