From ee4db4b804443bcad410c30be88bcdce7abf6008 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 29 Jan 2018 00:50:32 +0000 Subject: multi shapes --- .../example/bin/example.app/Contents/MacOS/example | Bin 11690516 -> 11696052 bytes ofxHelios/example/obj/osx/Release/src/ofApp.o | Bin 33912 -> 49548 bytes ofxHelios/example/src/ofApp.cpp | 46 ++++++++++++++------- 3 files changed, 31 insertions(+), 15 deletions(-) (limited to 'ofxHelios/example') diff --git a/ofxHelios/example/bin/example.app/Contents/MacOS/example b/ofxHelios/example/bin/example.app/Contents/MacOS/example index a4f6d56..a6be470 100755 Binary files a/ofxHelios/example/bin/example.app/Contents/MacOS/example and b/ofxHelios/example/bin/example.app/Contents/MacOS/example differ diff --git a/ofxHelios/example/obj/osx/Release/src/ofApp.o b/ofxHelios/example/obj/osx/Release/src/ofApp.o index 1dc0536..b1b70cf 100644 Binary files a/ofxHelios/example/obj/osx/Release/src/ofApp.o and b/ofxHelios/example/obj/osx/Release/src/ofApp.o differ diff --git a/ofxHelios/example/src/ofApp.cpp b/ofxHelios/example/src/ofApp.cpp index e629ae0..671529b 100644 --- a/ofxHelios/example/src/ofApp.cpp +++ b/ofxHelios/example/src/ofApp.cpp @@ -1,8 +1,9 @@ #include "ofApp.h" -int MAX_POINTS=30000; -int NUM_POINTS=1024; +int MAX_POINTS=20000; +int NUM_POINTS=128; int LASER_INTENSITY=37; +int CIRCLE_RADIUS=256; //-------------------------------------------------------------- void testApp::setup(){ @@ -12,7 +13,7 @@ void testApp::setup(){ //-------------------------------------------------------------- void testApp::update(){ - ofSetWindowTitle(ofToString(ofGetFrameRate(), 2)); + } @@ -47,22 +48,37 @@ void testApp::draw(){ float pfactor=(PI*2)/NUM_POINTS; - colourPolyline line; + vector 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 "); } - line.draw(); - - laser.draw(line); + } -- cgit v1.2.3