-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGuiApp.cpp
41 lines (30 loc) · 1.15 KB
/
GuiApp.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "GuiApp.h"
void GuiApp::setup() {
genParam.setName("Parameters");
genParam.add(initCount.set("Inital pox count", 5, 1, 20));
genParam.add(maxCount.set("Max pox count", 50, 25, 500));
genParam.add(minSize.set("Inital size", 1, 1, 10));
genParam.add(maxSize.set("Max size", 5, 5, 20));
genParam.add(migrationSpeed.set("Migration Speed", 5, 1, 10));
genParam.add(buddingSpeed.set("Budding Speed", 5, 1, 10));
genParam.add(growthRate.set("Growth Rate", 5, 1, 10));
genParam.add(toropoxMode.set("Toropox mode", true));
toropoxParam.setName("Toropox Parameters");
toropoxParam.add(phaseSpeed.set("Phase Speed", 5, 1, 20));
toropoxParam.add(rotationSpeed.set("RotationSpeed", 5, 1, 10));
toropoxParam.add(minWaxWane.set("Min Wax Wane", 0.25, 0.25, 0.5));
toropoxParam.add(maxWaxWane.set("Max Wax Wane", 0.5, 0.5, 0.75));
genParam.add(toropoxParam);
genParam.add(debug.set("[D]ebug", false));
genParam.add(fullscreen.set("[F]ullscreen", false));
gui.setup(genParam);
gui.add(resetButton.setup("Clear"));
ofBackground(0);
ofSetVerticalSync(false);
gui.loadFromFile("settings.xml");
}
void GuiApp::update() {
}
void GuiApp::draw() {
gui.draw();
}