summaryrefslogtreecommitdiff
path: root/gui/src/ofApp.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@getdrop.com>2018-11-18 01:26:53 +0000
committerTim Redfern <tim@getdrop.com>2018-11-18 01:26:53 +0000
commit7ebbce5e53efce80bc48fa6f492451df4107e8b5 (patch)
tree5f696004da987700ccbc6bd3f58f447bd728d900 /gui/src/ofApp.cpp
parent7e0ccebd5167da4d0bb4de1fb9b0ebb68f2bbe82 (diff)
alpha modeHEADmaster
Diffstat (limited to 'gui/src/ofApp.cpp')
-rw-r--r--gui/src/ofApp.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/gui/src/ofApp.cpp b/gui/src/ofApp.cpp
index 5c148be..feb3893 100644
--- a/gui/src/ofApp.cpp
+++ b/gui/src/ofApp.cpp
@@ -1,4 +1,4 @@
-#include "ofApp.h"
+ #include "ofApp.h"
#include "glew.h"
@@ -366,10 +366,22 @@ void ofApp::keyPressed(ofKeyEventArgs &args){
ofSetFullscreen(outputFS);
}
if(args.key == 'a'){
- bool add=!sets[0].additive;;
+ int which=int(sets[0].additive)+(int(sets[0].alpha)*2);
+ bool add=false;
+ bool alpha=false;
+ switch(which){
+ case 0:
+ add=true;
+ break;
+ case 1:
+ alpha=true;
+ break;
+ }
sets[0].additive=add;
sets[1].additive=add;
- printf("Additive: %s \n",add?"true":"false");
+ sets[0].alpha=alpha;
+ sets[1].alpha=alpha;
+ printf("Additive: %s Alpha: %s\n",add?"true":"false",alpha?"true":"false");
}
if(args.key >='1' && args.key <= '9'){
//sets[0].decayFactor = 1.0f + (