diff options
| author | Tim Redfern <tim@getdrop.com> | 2018-08-29 00:44:50 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2018-08-29 00:44:50 +0100 |
| commit | 25873b7bd177c6bb4ad4b00a51eb8fa213468126 (patch) | |
| tree | 45f8e4f284b8ef3a886d83a58418d2c8d5f7c563 /gui/src/chainImageSet.cpp | |
| parent | c0e32ef7278e108614186ff51f8e4260313a0e9e (diff) | |
zoom multiplier
Diffstat (limited to 'gui/src/chainImageSet.cpp')
| -rw-r--r-- | gui/src/chainImageSet.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gui/src/chainImageSet.cpp b/gui/src/chainImageSet.cpp index d3d363f..461df7e 100644 --- a/gui/src/chainImageSet.cpp +++ b/gui/src/chainImageSet.cpp @@ -25,6 +25,15 @@ void chainImageSet::drawOutput(){ glLoadIdentity(); glOrtho(-ofGetWidth()/2, ofGetWidth()/2, ofGetHeight()/2, -ofGetHeight()/2, 0.0f, 5000.0f); */ + + /* + //we can set the clipping but why is it squashed in X & Y? + glMatrixMode(GL_PROJECTION); + glLoadIdentity(); + float near=1.0f; + float far=10000.0f; + glFrustum(-1.0, 1.0, -1.0, 1.0, near, far); + */ glMatrixMode ( GL_MODELVIEW ); glLoadIdentity ( ); /* is not what we want @@ -39,6 +48,8 @@ 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(); @@ -514,7 +525,8 @@ void chainImageSet::mousePressed(int x, int y, int button){ (*currentImage)->updateOutput(decayFactor); } } - else clickPoint=ofPoint(x,y); + //else + clickPoint=ofPoint(x,y); } //-------------------------------------------------------------- |
