diff options
| author | Tim Redfern <tim@getdrop.com> | 2017-12-14 20:33:31 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2017-12-14 20:33:31 +0000 |
| commit | 75094cedeb1910d8a7cdb86ac56617af25f21a54 (patch) | |
| tree | 91fcce44b20d1643a97cd1d3d67179fa5a869018 /gui/src/chainImageSet.cpp | |
| parent | b81a1e4b77ad82315b84dd5eb1a76d80a544bcdd (diff) | |
correct path drawing
Diffstat (limited to 'gui/src/chainImageSet.cpp')
| -rw-r--r-- | gui/src/chainImageSet.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gui/src/chainImageSet.cpp b/gui/src/chainImageSet.cpp index 751b1ba..8f73013 100644 --- a/gui/src/chainImageSet.cpp +++ b/gui/src/chainImageSet.cpp @@ -195,6 +195,32 @@ void chainImageSet::drawGui(int x,int y,bool is_selected){ } + glPushMatrix(); + + ofSetColor(255,0,255); + + glTranslatef(t_xoffs+borderwidth+thumbx,borderwidth+thumby,0); + //this gets us to the middle of the image + + ofDrawRectangle(-5,-5,10,10); + + ofSetLineWidth(5); + + float pathscale=thumbscale/(((*ii)->linked)->linkScale); + + //draw the path here + glScalef(pathscale,pathscale,pathscale); + + //path starts at the linkpos and goes to the link's linkpos + //could it equally go from this point? + ((*ii)->linked)->updateOutput(decayFactor); + ofPoint start=((*ii)->linked)->path.getPointAtLength(0.0f); + glTranslatef(-start.x,-start.y,0); + ((*ii)->linked)->path.draw(); + + ofSetLineWidth(1); + + glPopMatrix(); t_xoffs+=(*ii)->thumbnail.getWidth()+(borderwidth*2); |
