diff options
Diffstat (limited to '04_playobjects/src/testApp.cpp')
| -rw-r--r-- | 04_playobjects/src/testApp.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/04_playobjects/src/testApp.cpp b/04_playobjects/src/testApp.cpp index 6b525e1..c1850f9 100644 --- a/04_playobjects/src/testApp.cpp +++ b/04_playobjects/src/testApp.cpp @@ -33,6 +33,13 @@ void testApp::setup() { offset=0.0f; receiver.setup(OSCPORT); + + user.setUseMaskTexture(true); + user.setUsePointCloud(true); + user.setPointCloudDrawSize(2); // this is the size of the glPoint that will be drawn for the point cloud + user.setPointCloudResolution(2); // this is the step size between points for the cloud -> eg., this sets it to every second point + + drawmovies=false;drawcloud=true; } void testApp::startPlayers(int newplayer){ @@ -40,7 +47,7 @@ void testApp::startPlayers(int newplayer){ soundplayer.stop(); usleep(100000); playing=newplayer; - players[playing].play(); + players[playing].play(user); } //-------------------------------------------------------------- @@ -75,7 +82,8 @@ void testApp::draw(){ ofPushMatrix(); - players[playing].draw(); + if (drawmovies) players[playing].drawWindows(); + if (drawmovies) players[playing].drawCloud(); ofPopMatrix(); @@ -111,6 +119,12 @@ void testApp::keyPressed(int key){ case 'x': offset+=1; break; + case 'q': + drawmovies=!drawmovies; + break; + case 'w': + drawcloud=!drawcloud; + break; } if (newplaying!=playing) startPlayers(newplaying); } |
