Commit 8f75d0ad authored by soundscape's avatar soundscape
Browse files

ofCloudServerApp: passage de XML vers JSON pour presets

parent 989e0ea6
......@@ -124,7 +124,7 @@ class ofCloudServerApp : public ofBaseApp
if (key == 'c') merger_.draw_cam_colors_ = !merger_.draw_cam_colors_;
if (key == 's') draw_clusters_ = !draw_clusters_;
key_pressed(key); // passe aux subclasses
key_pressed(key); // passe aux subclasses?
}
void keyReleased(int key) { key_released(key); }
......@@ -138,17 +138,20 @@ class ofCloudServerApp : public ofBaseApp
void gotMessage(ofMessage msg) {}
void dragEvent(ofDragInfo dragInfo) {}
void exit() { save_gui_params_to_file(0); }
void exit() {
save_gui_params_to_file(0);
exit();
}
void save_gui_params_to_file(int i)
{
gui_.saveToFile("presets/cloudserver_" + ofToString(i) + ".xml");
gui_.saveToFile("presets/cloudserver_" + ofToString(i) + ".json");
ofxSaveCamera(cam_, "cameras/current.txt");
}
void load_gui_params_from_file(int i)
{
gui_.loadFromFile("presets/cloudserver_" + ofToString(i) + ".xml");
gui_.loadFromFile("presets/cloudserver_" + ofToString(i) + ".json");
ofxLoadCamera(cam_, "cameras/current.txt");
save_gui_params_to_file(0);
}
......
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