From 8cba80bd1a624d424b1ef82b8c3394e30ae1bcf7 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 11 Sep 2012 08:42:30 +0100 Subject: making multiwindow --- liveengine/src/testApp.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'liveengine/src/testApp.h') diff --git a/liveengine/src/testApp.h b/liveengine/src/testApp.h index 4d769da..9104ac6 100755 --- a/liveengine/src/testApp.h +++ b/liveengine/src/testApp.h @@ -68,8 +68,8 @@ non random colours #define NUM_CONTROLLERS 6 #define START_CONTROLLER 102 - #include "ofxMidi.h" +#include "ofxFensterManager.h" #define NOTHING 0 #define BLOCKS 1 @@ -77,8 +77,21 @@ non random colours #include "playlist.h" +class previewWindow: public ofxFensterListener{ +public: + ~previewWindow(){ + cout << "preview window destroyed" << endl; + } + void setup(){ + } + void draw(ofTexture &grab){ + grab.draw(0,0,ofGetWidth(),ofGetHeight()); + } + +}; -class testApp : public ofBaseApp, public ofxMidiListener{ + +class testApp : public ofxFensterListener, public ofxMidiListener{ public: @@ -121,6 +134,8 @@ class testApp : public ofBaseApp, public ofxMidiListener{ ofTexture grab; + previewWindow prevWin; + int midiChannel; ofxMidiIn midiIn; -- cgit v1.2.3