Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _OSC_THREAD
- #define _OSC_THREAD
- #include "ofMain.h"
- class oscThread : of3dPrimitive {
- public:
- void setup();
- void draw();
- void update();
- //ofVbo vbo;
- ofVec3f originP;
- ofVec3f destP;
- vector<float> offsetZ;
- ofColor color;
- int res; //Resolution
- int speed; //Speed (lower=faster)
- float amp; //Amplitude
- float f; //Frequency
- int numVerts;
- float helixTest;
- oscThread(ofVec2f origin, ofMesh mesh);
- };
- #endif
- #include "oscThread.h"
- oscThread::oscThread(ofVec2f origin, ofMesh mesh)
- {
- helixTest = sin(f*amp); //Affecting the shape of the spiral!
- }
- void oscThread::setup()
- {
- }
- void oscThread::draw()
- {
- }
- void oscThread::update()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement