summaryrefslogtreecommitdiff
path: root/gui/libs/ofxAChaosLib/src/AChaosBase.h
diff options
context:
space:
mode:
authorTim Redfern <tim@getdrop.com>2018-08-18 12:09:34 +0100
committerTim Redfern <tim@getdrop.com>2018-08-18 12:09:34 +0100
commitd503992380630c1ee6d2edce8861d5f6e31cf8a1 (patch)
tree5f813f80ac7bc566534cf3fbfb7411244ec33d3b /gui/libs/ofxAChaosLib/src/AChaosBase.h
parentfb68eed64f548d090eb550047fd0d898e4e033fc (diff)
start vector plugin arch
Diffstat (limited to 'gui/libs/ofxAChaosLib/src/AChaosBase.h')
-rw-r--r--gui/libs/ofxAChaosLib/src/AChaosBase.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/gui/libs/ofxAChaosLib/src/AChaosBase.h b/gui/libs/ofxAChaosLib/src/AChaosBase.h
index 2a8b1d0..b6ef5e3 100644
--- a/gui/libs/ofxAChaosLib/src/AChaosBase.h
+++ b/gui/libs/ofxAChaosLib/src/AChaosBase.h
@@ -8,9 +8,15 @@
#pragma once
// comment for 64bits version (not all objects support)
-#define ACHAOS32
+#define ACHAOS_parameters
-#ifdef ACHAOS32
+#ifdef ACHAOS_paramaters
+#include "ofMain.h"
+ typedef ofParameter<float> REAL
+ #define SIN sin
+ #define COS cos
+
+#elif ACHAOS32
// 32bit
typedef float REAL;
#define SIN sinf
@@ -32,10 +38,11 @@ public:
~AChaosBase(){}
vector<REAL> iv;
- vector<REAL> ov;
+ vector<REAL> ov;
+
virtual void setup(REAL * params = NULL)=0;
- vector<string> param_labels;
+ virtual vector<string> &get_param_labels()=0;
void init(REAL * params = NULL, int numiv=1, int numov=1){
iv.clear();