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

Method DrawSegment

samples/FallingGears/src/Box2dUtils.cpp:76–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void DebugDraw::DrawSegment( const b2Vec2 &p1, const b2Vec2 &p2, const b2Color &color )
77{
78 gl::color( toCinder( color ) );
79 gl::drawLine( toCinder( p1 ), toCinder( p2 ) );
80}
81
82void DebugDraw::DrawTransform( const b2Transform &xf )
83{

Callers 3

DrawMethod · 0.80
DrawShapeMethod · 0.80
DrawJointMethod · 0.80

Calls 3

toCinderFunction · 0.85
colorFunction · 0.50
drawLineFunction · 0.50

Tested by

no test coverage detected