| 38 | } |
| 39 | |
| 40 | void DebugDraw::DrawPolygon( const b2Vec2 *vertices, int32 vertexCount, const b2Color &color ) |
| 41 | { |
| 42 | gl::color( toCinder( color ) ); |
| 43 | |
| 44 | Path2d path; |
| 45 | path.moveTo( toCinder( vertices[0] ) ); |
| 46 | for( size_t i = 1; i < vertexCount; i++ ) |
| 47 | path.lineTo( toCinder( vertices[i] ) ); |
| 48 | |
| 49 | gl::draw( path ); |
| 50 | } |
| 51 | |
| 52 | void DebugDraw::DrawSolidPolygon( const b2Vec2 *vertices, int32 vertexCount, const b2Color &color ) |
| 53 | { |