summaryrefslogtreecommitdiff
path: root/gaunt01/src
diff options
context:
space:
mode:
Diffstat (limited to 'gaunt01/src')
-rw-r--r--gaunt01/src/main.cpp2
-rw-r--r--gaunt01/src/testApp.cpp14
-rw-r--r--gaunt01/src/testApp.h2
3 files changed, 13 insertions, 5 deletions
diff --git a/gaunt01/src/main.cpp b/gaunt01/src/main.cpp
index 1f3ac12..d8ec5c8 100644
--- a/gaunt01/src/main.cpp
+++ b/gaunt01/src/main.cpp
@@ -6,7 +6,7 @@
int main( ){
ofAppGlutWindow window;
- ofSetupOpenGL(&window, 1024,768, OF_FULLSCREEN ); // <-------- setup the GL context
+ ofSetupOpenGL(&window, 1024,768, OF_WINDOW ); // <-------- setup the GL context
printf("%ix%i on screen %ix%i\n",ofGetWidth(),ofGetHeight(),ofGetScreenWidth(),ofGetScreenHeight());
// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
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':
diff --git a/gaunt01/src/testApp.h b/gaunt01/src/testApp.h
index 82f75fe..7740e73 100644
--- a/gaunt01/src/testApp.h
+++ b/gaunt01/src/testApp.h
@@ -159,6 +159,8 @@ class testApp : public ofBaseApp{
bool drawStats;
bool drawInstructions;
+
+ bool composite; //turn off for 'dumb compositing'
bool firstframe; //for background removal
float bgnum;