From d60cc2aa2994f9e63d9570bea4fac8b8a9949b43 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 30 Jan 2018 00:35:30 +0000 Subject: much progress --- ofxHelios/example-circles/src/ofApp.cpp | 139 ++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 ofxHelios/example-circles/src/ofApp.cpp (limited to 'ofxHelios/example-circles/src/ofApp.cpp') diff --git a/ofxHelios/example-circles/src/ofApp.cpp b/ofxHelios/example-circles/src/ofApp.cpp new file mode 100644 index 0000000..9ae4f23 --- /dev/null +++ b/ofxHelios/example-circles/src/ofApp.cpp @@ -0,0 +1,139 @@ +#include "ofApp.h" + +int MAX_POINTS=40000; +int NUM_POINTS=128; +int LASER_INTENSITY=37; +int CIRCLE_RADIUS=256; + +//-------------------------------------------------------------- +void testApp::setup(){ + laser.set_pts(MAX_POINTS); + laser.set_intensity(LASER_INTENSITY); +} + +//-------------------------------------------------------------- +void testApp::update(){ + + +} + +//-------------------------------------------------------------- +void testApp::draw(){ + ofBackground(0); + ofSetColor(255,255,255); +/* + if (line.size()){ + current++; + } + ofPolyline todraw; + for (int i=max(0,min(current,(int)line.size())) ;i lines; + + for (int k=0;k<2;k++){ + for (int j=0;j<2;j++){ + + colourPolyline line; + + for (int i=0;i0){ + ofSetWindowTitle(ofToString(ofGetFrameRate(), 2)+" fps laser points: "+ofToString(num)); + } + else { + ofSetWindowTitle("laser error "); + } + + + +} + +//-------------------------------------------------------------- +void testApp::keyPressed(int key){ + +} + +//-------------------------------------------------------------- +void testApp::keyReleased(int key){ + +} + +//-------------------------------------------------------------- +void testApp::mouseMoved(int x, int y ){ + + + + /// int i = 1; + /// while ( i