| 50 | } |
| 51 | |
| 52 | void DebugDraw::DrawSolidPolygon( const b2Vec2 *vertices, int32 vertexCount, const b2Color &color ) |
| 53 | { |
| 54 | gl::color( toCinder( color ) ); |
| 55 | |
| 56 | Path2d path; |
| 57 | path.moveTo( toCinder( vertices[0] ) ); |
| 58 | for( size_t i = 1; i < vertexCount; i++ ) |
| 59 | path.lineTo( toCinder( vertices[i] ) ); |
| 60 | |
| 61 | gl::drawSolid( path ); |
| 62 | } |
| 63 | |
| 64 | void DebugDraw::DrawCircle( const b2Vec2 ¢er, float32 radius, const b2Color &color ) |
| 65 | { |