MCPcopy Create free account
hub / github.com/cinder/Cinder / DrawSolidPolygon

Method DrawSolidPolygon

samples/FallingGears/src/Box2dUtils.cpp:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void 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
64void DebugDraw::DrawCircle( const b2Vec2 &center, float32 radius, const b2Color &color )
65{

Callers 1

DrawShapeMethod · 0.80

Calls 5

toCinderFunction · 0.85
drawSolidFunction · 0.85
colorFunction · 0.50
moveToMethod · 0.45
lineToMethod · 0.45

Tested by

no test coverage detected