33 b2Color(
float rIn,
float gIn,
float bIn,
float aIn = 1.0f)
35 r = rIn; g = gIn; b = bIn; a = aIn;
38 void Set(
float rIn,
float gIn,
float bIn,
float aIn = 1.0f)
40 r = rIn; g = gIn; b = bIn; a = aIn;
uint32 GetFlags() const
Get the drawing flags.
virtual void DrawSegment(const b2Vec2 &p1, const b2Vec2 &p2, const b2Color &color)=0
Draw a line segment.
virtual void DrawPoint(const b2Vec2 &p, float size, const b2Color &color)=0
Draw a point.
@ e_shapeBit
draw shapes
Definition b2_draw.h:57
@ e_jointBit
draw joint connections
Definition b2_draw.h:58
@ e_centerOfMassBit
draw center of mass frame
Definition b2_draw.h:61
@ e_pairBit
draw broad-phase pairs
Definition b2_draw.h:60
@ e_aabbBit
draw axis aligned bounding boxes
Definition b2_draw.h:59
virtual void DrawSolidCircle(const b2Vec2 ¢er, float radius, const b2Vec2 &axis, const b2Color &color)=0
Draw a solid circle.
virtual void DrawSolidPolygon(const b2Vec2 *vertices, int32 vertexCount, const b2Color &color)=0
Draw a solid closed polygon provided in CCW order.
void SetFlags(uint32 flags)
Set the drawing flags.
virtual void DrawCircle(const b2Vec2 ¢er, float radius, const b2Color &color)=0
Draw a circle.
void AppendFlags(uint32 flags)
Append flags to the current flags.
virtual void DrawPolygon(const b2Vec2 *vertices, int32 vertexCount, const b2Color &color)=0
Draw a closed polygon provided in CCW order.
virtual void DrawTransform(const b2Transform &xf)=0
void ClearFlags(uint32 flags)
Clear flags from the current flags.
Color for debug drawing. Each value has the range [0,1].
Definition b2_draw.h:31
A 2D column vector.
Definition b2_math.h:42