diff options
Diffstat (limited to '03_play/src/testApp.h')
| -rw-r--r-- | 03_play/src/testApp.h | 27 |
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 |
