From e64bc72d2f9b66cd91f9514348ac33081504b618 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 22 Aug 2012 16:53:32 +0100 Subject: non compositing version --- gaunt01/bin/data/settings.xml | 2 +- gaunt01/src/main.cpp | 2 +- gaunt01/src/testApp.cpp | 14 ++++++++++---- gaunt01/src/testApp.h | 2 ++ 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/gaunt01/bin/data/settings.xml b/gaunt01/bin/data/settings.xml index 3ef506a..867b22d 100644 --- a/gaunt01/bin/data/settings.xml +++ b/gaunt01/bin/data/settings.xml @@ -1,5 +1,5 @@ - + 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::iterator it; for(int i=0;i