summaryrefslogtreecommitdiff
path: root/liveengine/src/testApp.cpp
diff options
context:
space:
mode:
authorgit@eclectronics.org <git@eclectronics.org@eclectronics.org>2012-08-19 17:49:39 +0100
committergit@eclectronics.org <git@eclectronics.org@eclectronics.org>2012-08-19 17:49:39 +0100
commit36abd3f1907a4ec3472ae08b7a99c567a33b9c8f (patch)
tree7b88ed6a36b7a6ebeb3797ab8d93169211bbc099 /liveengine/src/testApp.cpp
parentb3da54bf44ee9a558f15b1d936a690d5484b3361 (diff)
nothing significant
Diffstat (limited to 'liveengine/src/testApp.cpp')
-rwxr-xr-xliveengine/src/testApp.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/liveengine/src/testApp.cpp b/liveengine/src/testApp.cpp
index 86bbad6..5c337b0 100755
--- a/liveengine/src/testApp.cpp
+++ b/liveengine/src/testApp.cpp
@@ -58,15 +58,16 @@ void testApp::setup(){
controllers=new unsigned char[NUM_CONTROLLERS];
memset(controllers,NUM_CONTROLLERS,0);
- note=START_NOTE;
+ note=0;
controller_colours=new ofColor[NUM_CONTROLLERS];
for (int i=0;i<NUM_CONTROLLERS;i++) controller_colours[i]=ofColor::fromHsb(ofRandom(255), 255, 255);
- grab.allocate(ofGetWidth(), ofGetHeight(),OF_IMAGE_COLOR);
+ //grab.allocate(ofGetWidth(), ofGetHeight(),OF_IMAGE_COLOR_ALPHA);
grab.setUseTexture(true);
showFPS=false;
+ ofBackground(0,0,0);
}
//--------------------------------------------------------------
@@ -75,11 +76,13 @@ void testApp::update(){
}
//--------------------------------------------------------------
-void testApp::draw(){
+void testApp::draw(){
+ ofSetColor(255,255,255);
grab.grabScreen( 0, 0, ofGetWidth(), ofGetHeight() );
- grab.update();
+ grab.update();
+ grab.reloadTexture();
ofBackground(0,0,0);
- grab.draw( 1,1,ofGetWidth(), ofGetHeight());
+ grab.draw( 1,1);
float notewidth=ofGetWidth()/NUM_NOTES;
float noteheight=ofGetHeight()/NUM_CONTROLLERS;