summaryrefslogtreecommitdiff
path: root/gaunt01/src/testApp.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2012-04-03 23:06:21 +0100
committerTim Redfern <tim@eclectronics.org>2012-04-03 23:06:21 +0100
commit0c2a97dcc0fb370938dc0d2d3a27053c2c9cb31e (patch)
tree1678420c09caa3ef73b4c45195b7da35cf31a363 /gaunt01/src/testApp.h
parent0363ee4f188c735a43c6624a2b10a191f74c3029 (diff)
blobs tesselated into textured polys
Diffstat (limited to 'gaunt01/src/testApp.h')
-rw-r--r--gaunt01/src/testApp.h11
1 files changed, 11 insertions, 0 deletions
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<ofVec3f> players;
trapdoor trapDoor;
ofMesh ground;
+
+ ofVec3f* testpts;
+
+ ofTessellator tesselator;
+ ofMesh player;
+ ofPolyline playeroutline;
};