summaryrefslogtreecommitdiff
path: root/03_play/src/testApp.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-06-19 02:33:45 +0100
committerComment <tim@gray.(none)>2013-06-19 02:33:45 +0100
commit4fdd082d9a5657b0f9c613d47c2c58cea366a2e6 (patch)
tree6c556338b9a9915b252488abfda33578b5b71f01 /03_play/src/testApp.h
parent04bc6345764e55ae249a622030f26496a0586541 (diff)
finally all of the elements
Diffstat (limited to '03_play/src/testApp.h')
-rw-r--r--03_play/src/testApp.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/03_play/src/testApp.h b/03_play/src/testApp.h
index 67cd4dc..7453e44 100644
--- a/03_play/src/testApp.h
+++ b/03_play/src/testApp.h
@@ -13,6 +13,28 @@ struct record{
string audio;
};
+class fpoint{
+ public:
+ fpoint(float _x,float _y, float _z, unsigned char _r,unsigned char _g,unsigned char _b,float _ay,float _lt){
+ x=_x;y=_y;z=_z;r=_r;g=_g;b=_b;ay=_ay;dy=0;st=ofGetElapsedTimef(),lt=_lt;
+ }
+ float x,y,z;
+ float st;
+ float dy;
+ float ay;
+ unsigned char r,g,b;
+ float lt;
+ bool draw(){
+ float l=ofGetElapsedTimef()-st;
+ if (lt>l) {
+ glColor4ub(r,g,b, (unsigned char)((l/lt)*255.0f));
+ glVertex3f(x,y-(pow(l,2)*ay),z);
+ return false;
+ }
+ else return true;
+ }
+};
+
class testApp : public ofBaseApp{
public:
@@ -47,10 +69,15 @@ public:
float offset;
ofxMayaCam cam;
+ ofCamera camera;
+ ofNode target;
bool drawmovies,drawcloud;
int frame;
+
+ ofImage point_texture;
+ vector<fpoint> points;
};
#endif