summaryrefslogtreecommitdiff
path: root/gaunt01/src
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2012-07-09 21:23:04 +0100
committerTim Redfern <tim@eclectronics.org>2012-07-09 21:23:04 +0100
commit8cc12c684eaf724832cb67b950188306fa9fd0a1 (patch)
treec0be203435b49ec574b41129e8d9ff5334f9dc55 /gaunt01/src
parentcae8be229004e32ce76b38e207ea24a02434b18d (diff)
version 1.2
Diffstat (limited to 'gaunt01/src')
-rw-r--r--gaunt01/src/testApp.cpp9
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;