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/src/testApp.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'gaunt01/src/testApp.cpp') 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