summaryrefslogtreecommitdiff
path: root/gui/src/chainImageSet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/chainImageSet.cpp')
-rw-r--r--gui/src/chainImageSet.cpp14
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);
}
//--------------------------------------------------------------