summaryrefslogtreecommitdiff
path: root/gaunt01/src/testApp.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2012-08-22 16:53:32 +0100
committerTim Redfern <tim@eclectronics.org>2012-08-22 16:53:32 +0100
commite64bc72d2f9b66cd91f9514348ac33081504b618 (patch)
tree64f83e3a90c28ddedf5418d617fc05b41fe0d173 /gaunt01/src/testApp.cpp
parent621674d6e9fb0024645cd0020c6afb51e4b4a7e9 (diff)
non compositing versionHEADmaster
Diffstat (limited to 'gaunt01/src/testApp.cpp')
-rw-r--r--gaunt01/src/testApp.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/gaunt01/src/testApp.cpp b/gaunt01/src/testApp.cpp
index beefce0..fa0a879 100644
--- a/gaunt01/src/testApp.cpp
+++ b/gaunt01/src/testApp.cpp
@@ -127,6 +127,8 @@ void testApp::setup(){
light.enable();
drawingborder=false;
+
+ composite=true;
billboards=new ofImage[4];
billboards[0].loadImage("GUI_title.png");
@@ -770,10 +772,10 @@ void testApp::draw(){
//should be in front with holes being recreated for activated trapdoors
ofSetHexColor(0xffffff);
- if (mode==CALIBRATE) bindTexture(colorImg);
+ if (mode==CALIBRATE||!composite) bindTexture(colorImg);
else bindTexture(background);
ground.draw();
- if (mode==CALIBRATE) unbindTexture(colorImg);
+ if (mode==CALIBRATE||!composite) unbindTexture(colorImg);
else unbindTexture(background);
ofPushMatrix();
@@ -801,8 +803,7 @@ void testApp::draw(){
bindTexture(colorImg); //colorImg.getTextureReference().bind();
map<int,player>::iterator it;
for(int i=0;i<blobsManager.blobs.size();i++){
- //if(players[blobsManager.blobs.at(i).id].active)
- players[blobsManager.blobs.at(i).id].draw();
+ if(players[blobsManager.blobs.at(i).id].active) players[blobsManager.blobs.at(i).id].draw();
}
unbindTexture(colorImg);
}
@@ -1088,6 +1089,11 @@ void testApp::keyPressed(int key){
removeShadows=!removeShadows;
printf(removeShadows?"removing shadows\n":"not removing shadows\n");
break;
+
+ case 'c':
+ case 'C':
+ composite=!composite;
+ break;
/*
case '1':