Commit 989e0ea6 authored by alexandre burton's avatar alexandre burton
Browse files

CropFilter: integration des fonctions de save/load json

parent 92c2809f
......@@ -82,7 +82,7 @@ class CropFilter
void draw()
{
glm::vec3 size = parameters_.dim_.get();
glm::vec3 fillsize = parameters_.dim_.get() * glm::vec3(1, get_fill(), 1);
//,a glm::vec3 fillsize = parameters_.dim_.get() * glm::vec3(1, get_fill(), 1);
glm::vec3 fillpos = parameters_.pos_.get() - glm::vec3(0, (size.y * (1.0 - get_fill())) / 2, 0);
ofPushStyle();
ofEnableBlendMode(OF_BLENDMODE_ADD);
......@@ -239,13 +239,13 @@ class FilterManager
}
void save_preset_id(int num) {
zones_gui_.saveToFile("bin/data/presets/zones/preset"+ofToString(num)+".json");
zones_gui_.saveToFile("presets/zones/preset"+ofToString(num)+".json");
}
void load_preset_id(int num) {
zones_gui_.loadFromFile("bin/data/presets/zones/preset"+ofToString(num)+".json");
zones_gui_.loadFromFile("presets/zones/preset"+ofToString(num)+".json");
}
void setup_artnet()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment