diff options
| author | Tim Redfern <tim@getdrop.com> | 2018-01-10 21:53:56 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2018-01-10 21:53:56 +0000 |
| commit | 9f1fdb2fa8fa09dbd990b33379db98762f3856ce (patch) | |
| tree | 4d76bf3c3f51616d07b79411bc7363382d6719a1 /gui/src/chainImageSet.cpp | |
| parent | 4c9570bdf49ec3a6517e5be60fc960d7d9cdbed0 (diff) | |
use ofxEase for rotation
Diffstat (limited to 'gui/src/chainImageSet.cpp')
| -rw-r--r-- | gui/src/chainImageSet.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/src/chainImageSet.cpp b/gui/src/chainImageSet.cpp index 569ab0e..d3d363f 100644 --- a/gui/src/chainImageSet.cpp +++ b/gui/src/chainImageSet.cpp @@ -40,6 +40,7 @@ void chainImageSet::drawOutput(){ glScalef(ZOOM_FUDGE_FACTOR,ZOOM_FUDGE_FACTOR,ZOOM_FUDGE_FACTOR); //easy way to limit camera cutoff //printf("drawing rotation %f for transition %f\n",(*currentImage)->getRotation(),(*currentImage)->transition); + float rot=(*currentImage)->getRotation(); gluLookAt( (*currentImage)->getTransform().x, (*currentImage)->getTransform().y, // i1.linkPos.y+(xform.y*intervalpoint), @@ -47,8 +48,8 @@ void chainImageSet::drawOutput(){ (*currentImage)->getTransform().x, (*currentImage)->getTransform().y, // i1.linkPos.y+(xform.y*intervalpoint), 0, - sin(-(*currentImage)->getRotation()*(PI/180)), - cos(-(*currentImage)->getRotation()*(PI/180)), + sin(-rot*(PI/180)), + cos(-rot*(PI/180)), 0); |
