summaryrefslogtreecommitdiff
path: root/morpher/src/testApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'morpher/src/testApp.cpp')
-rw-r--r--morpher/src/testApp.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/morpher/src/testApp.cpp b/morpher/src/testApp.cpp
index 41b04eb..3b5779e 100644
--- a/morpher/src/testApp.cpp
+++ b/morpher/src/testApp.cpp
@@ -28,8 +28,11 @@ void testApp::update(){
void testApp::draw(){
//calculate morph targets
float segment=(sin(ofGetElapsedTimef())*0.5)+0.5;
+ vector<int> targets;
vector<float> weights;
+ targets.push_back(0);
weights.push_back(segment);
+ targets.push_back(1);
weights.push_back(1.0-segment);
//printf("drawing %f %f\n",segment,1.0-segment);
@@ -41,7 +44,7 @@ void testApp::draw(){
ofRotate(yr,1,0,0);
ofRotate(180,1,0,0);
ofScale(2.0,2.0,2.0);
- mesh.draw(weights);
+ mesh.draw(targets,weights);
ofPopMatrix();
unbindTexture(texture);