From 64c89ab53447a004002ec0b0db94fd0a1e632cf6 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sun, 28 Jan 2018 22:20:49 +0000 Subject: POC driver --- ofxHelios/example/src/ofApp.cpp | 123 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 ofxHelios/example/src/ofApp.cpp (limited to 'ofxHelios/example/src/ofApp.cpp') diff --git a/ofxHelios/example/src/ofApp.cpp b/ofxHelios/example/src/ofApp.cpp new file mode 100644 index 0000000..e629ae0 --- /dev/null +++ b/ofxHelios/example/src/ofApp.cpp @@ -0,0 +1,123 @@ +#include "ofApp.h" + +int MAX_POINTS=30000; +int NUM_POINTS=1024; +int LASER_INTENSITY=37; + +//-------------------------------------------------------------- +void testApp::setup(){ + laser.set_pts(MAX_POINTS); + laser.set_intensity(LASER_INTENSITY); +} + +//-------------------------------------------------------------- +void testApp::update(){ + ofSetWindowTitle(ofToString(ofGetFrameRate(), 2)); + +} + +//-------------------------------------------------------------- +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