Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.88 KB | None | 0 0
  1. #ifndef _OSC_THREAD
  2. #define _OSC_THREAD
  3.  
  4. #include "ofMain.h"
  5.  
  6. class oscThread : of3dPrimitive {
  7.    
  8.     public:
  9.         void setup();
  10.         void draw();
  11.         void update();
  12.    
  13.         //ofVbo vbo;
  14.    
  15.         ofVec3f originP;
  16.         ofVec3f destP;
  17.         vector<float> offsetZ;
  18.    
  19.         ofColor color;
  20.    
  21.         int   res;    //Resolution
  22.         int   speed;  //Speed (lower=faster)
  23.         float amp;    //Amplitude
  24.         float f;      //Frequency
  25.  
  26.    
  27.         int numVerts;
  28.         float helixTest;
  29.    
  30.         oscThread(ofVec2f origin, ofMesh mesh);
  31. };
  32.  
  33. #endif
  34.  
  35.  
  36.  
  37.  
  38.  
  39. #include "oscThread.h"
  40.  
  41. oscThread::oscThread(ofVec2f origin, ofMesh mesh)
  42. {
  43.     helixTest = sin(f*amp);                 //Affecting the shape of the spiral!
  44. }
  45.  
  46. void oscThread::setup()
  47. {
  48.  
  49. }
  50.  
  51. void oscThread::draw()
  52. {
  53.  
  54. }
  55.  
  56. void oscThread::update()
  57. {
  58.  
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement