From dbf9692b03ac2485f771993184222f7170e71cf2 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 14 May 2012 19:00:08 +0100 Subject: working on background segmentation --- gaunt01/src/testApp.h | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'gaunt01/src/testApp.h') diff --git a/gaunt01/src/testApp.h b/gaunt01/src/testApp.h index a5ee556..01301de 100644 --- a/gaunt01/src/testApp.h +++ b/gaunt01/src/testApp.h @@ -46,6 +46,8 @@ class testApp : public ofBaseApp{ void dragEvent(ofDragInfo dragInfo); void gotMessage(ofMessage msg); + int windowWidth, windowHeight; + int mode; //utility functions @@ -91,21 +93,22 @@ class testApp : public ofBaseApp{ //vector players; trapdoor trapDoor; ofMesh ground; - + vector groundlines; ofTessellator tess; - - void makeGround(int doornumber); - + + void tessGround(int doornum); + void makeGround(int doornum); + vector trapdoors; float trapdoorSize; float trapdoorSlotSize; int numtrapdoorSlots; - + int trapdoorCounter; float trapdoorTime; //time per trap door float trapdoorTimer; - + ofSoundPlayer* doorsounds; ofVec3f* testpts; @@ -114,22 +117,22 @@ class testApp : public ofBaseApp{ map players; bool drawStats; - + bool firstframe; //for background removal float bgnum; - + ofLight light; - + ofPlane* bounds; - + vector border; bool drawingborder; - + ofSoundPlayer* sounds; - + ofImage* billboards; ofVec2f scaleFactor; - + int gameState; float gameStart; float segTimes[5]; -- cgit v1.2.3