diff options
| author | Tim <tim@Admins-Mac-Pro-2.local> | 2013-06-18 18:03:31 +0100 |
|---|---|---|
| committer | Tim <tim@Admins-Mac-Pro-2.local> | 2013-06-18 18:03:31 +0100 |
| commit | c42c63d30a31713ffc113d6a03795d4538bd5c84 (patch) | |
| tree | 1179a7ad4946734b9fcfd14c4246ef7c8752df4e /04_playobjects/src/testApp.cpp | |
| parent | 020abd861215e391c6664c1f63d4dc0cf2fab833 (diff) | |
mostly good
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); } |
