From 0c2a97dcc0fb370938dc0d2d3a27053c2c9cb31e Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 3 Apr 2012 23:06:21 +0100 Subject: blobs tesselated into textured polys --- gaunt01/src/testApp.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gaunt01/src/testApp.h') diff --git a/gaunt01/src/testApp.h b/gaunt01/src/testApp.h index 2870008..e829630 100644 --- a/gaunt01/src/testApp.h +++ b/gaunt01/src/testApp.h @@ -6,6 +6,7 @@ #include "ofxRay.h" #include "ofxXmlSettings.h" +#include "ofxBlobsManager.h" #include "trapdoor.h" @@ -35,9 +36,11 @@ class testApp : public ofBaseApp{ int mode; + //utility functions ofVec2f screen2plane(ofVec2f screenpos); ofVec3f plane2world(ofVec2f planepos); void updatePlane(); + bool rectsCross(ofRectangle rect1,ofRectangle rect2); ofxXmlSettings XML; void loadSettings(string filename); @@ -55,6 +58,8 @@ class testApp : public ofBaseApp{ ofxCvGrayscaleImage grayDiff; ofxCvContourFinder contourFinder; + + ofxBlobsManager blobsManager; int threshold; bool bLearnBakground; @@ -72,6 +77,12 @@ class testApp : public ofBaseApp{ vector players; trapdoor trapDoor; ofMesh ground; + + ofVec3f* testpts; + + ofTessellator tesselator; + ofMesh player; + ofPolyline playeroutline; }; -- cgit v1.2.3