diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-07-09 21:23:04 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-07-09 21:23:04 +0100 |
| commit | 8cc12c684eaf724832cb67b950188306fa9fd0a1 (patch) | |
| tree | c0be203435b49ec574b41129e8d9ff5334f9dc55 /gaunt01/src/testApp.cpp | |
| parent | cae8be229004e32ce76b38e207ea24a02434b18d (diff) | |
version 1.2
Diffstat (limited to 'gaunt01/src/testApp.cpp')
| -rw-r--r-- | gaunt01/src/testApp.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gaunt01/src/testApp.cpp b/gaunt01/src/testApp.cpp index 8e3487a..8fe42cc 100644 --- a/gaunt01/src/testApp.cpp +++ b/gaunt01/src/testApp.cpp @@ -971,8 +971,8 @@ void testApp::draw(){ if (drawStats||mode==CALIBRATE) { ofSetHexColor(0xffffff); char reportStr[1024]; - sprintf(reportStr, "threshold %i\nfps: %3.1f",threshold,ofGetFrameRate()); //\nnum blobs found %i, fps: %f", threshold, contourFinder.nBlobs, ofGetFrameRate()); - ofDrawBitmapString(reportStr, 10, windowHeight-30); + sprintf(reportStr, "threshold %i\nfps: %3.1f\n%s",threshold,ofGetFrameRate(),removeShadows?"Removing shadows":"NOT removing shadows"); //\nnum blobs found %i, fps: %f", threshold, contourFinder.nBlobs, ofGetFrameRate()); + ofDrawBitmapString(reportStr, 10, windowHeight-35); /* char numStr[16]; for(int i=0;i<blobsManager.blobs.size();i++){ @@ -1134,6 +1134,11 @@ void testApp::keyPressed(int key){ drawingborder=true; } else drawingborder=false; + break; + case ' ': + ofSaveFrame(); + printf("[%8.2f] saved an image\n",ofGetElapsedTimef()); + break; /* case '>': gameState=(gameState+1)%4; |
