Laser Sensing Display for UI interfaces in the real world
Fork of skinGames_forktest by
Diff: main.cpp
- Revision:
- 19:228430f1350e
- Parent:
- 18:d72935b13858
- Child:
- 21:bc9b9383f4b6
--- a/main.cpp Sat Apr 28 12:35:21 2012 +0000 +++ b/main.cpp Sat Apr 28 13:42:14 2012 +0000 @@ -289,8 +289,16 @@ lsr.setConfigToRender(&blobconf); timerForRendering.attach(&lsr, &simpleLaserSensingRenderer::laserRenderThread, RENDER_INTERVAL); // timerForRendering.attach(&lsr, &simpleLaserSensingRenderer::laserRenderThreadONEBLOBONLY, RENDER_INTERVAL); + + } else if (!strcmp(address[0], "elastic_mouth_small")) { // + timerForRendering.detach(); + // blobconf.computeBoundingBox(); + blobconf.clearConfig(); + blobconf.addOneElasticLoopContractCentralFast(); + lsr.setConfigToRender(&blobconf); + timerForRendering.attach(&lsr, &simpleLaserSensingRenderer::laserRenderThread, RENDER_INTERVAL); + // timerForRendering.attach(&lsr, &simpleLaserSensingRenderer::laserRenderThreadONEBLOBONLY, RENDER_INTERVAL); } - else if (!strcmp(address[0], "spot_bouncing")) { int value=data[0]; if (value!=-1) { // otherwise do nothing, this is a reception error (there was no data) @@ -340,8 +348,7 @@ } // (III) ========================================= Loop control (parameters, etc) =========================================== - // NOte: for the time being, we only have ONE loop, so there is no "per loop or per config" mode. - + else if (!strcmp( address[0], "sendOSC" ) ) { int value=data[0]; if (value!=-1) { // otherwise do nothing, this is a reception error (there was no data)