17 #ifndef LIQUIDFUNDEBUGDRAW_H
18 #define LIQUIDFUNDEBUGDRAW_H
20 #include <Box2D/Box2D.h>
49 virtual void DrawPolygon(
const b2Vec2* vertices, int32 vertexCount,
50 const b2Color& color)
override;
59 const b2Color& color)
override;
66 virtual void DrawCircle(
const b2Vec2& center, float32 radius,
const b2Color& color)
override;
74 virtual void DrawSolidCircle(
const b2Vec2& center, float32 radius,
const b2Vec2& axis,
75 const b2Color& color)
override;
83 virtual void DrawParticles(
const b2Vec2* centers, float32 radius,
84 const b2ParticleColor* colors, int32 count)
override;
91 virtual void DrawSegment(
const b2Vec2& p1,
const b2Vec2& p2,
const b2Color& color)
override;
102 static const int CIRCLE_SEGMENTS = 16;
103 static const int PARTICLE_CIRCLE_SEGMENTS = 8;
106 #endif // LIQUIDFUNDEBUGDRAW_H
Implementation of b2Draw which renders objects (body fixtures, particles, etc.) using DebugRenderer...
Definition: LiquidFunDebugDraw.h:35
virtual void DrawParticles(const b2Vec2 *centers, float32 radius, const b2ParticleColor *colors, int32 count) override
Draw a list of particles as circles.
virtual void DrawPolygon(const b2Vec2 *vertices, int32 vertexCount, const b2Color &color) override
Draw a closed polygon line.
virtual void DrawCircle(const b2Vec2 ¢er, float32 radius, const b2Color &color) override
Draw a circle.
virtual void DrawSegment(const b2Vec2 &p1, const b2Vec2 &p2, const b2Color &color) override
Draw a line segment.
virtual void DrawSolidCircle(const b2Vec2 ¢er, float32 radius, const b2Vec2 &axis, const b2Color &color) override
Draw a filled circle.
virtual void DrawTransform(const b2Transform &xf) override
Draw a two dimensional transform.
virtual void DrawSolidPolygon(const b2Vec2 *vertices, int32 vertexCount, const b2Color &color) override
Draw a filled polygon.
LiquidFunDebugDraw()
Constructs a LiquidFunDebugDraw.