You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
600 B
28 lines
600 B
#pragma once
|
|
|
|
#include "ofMain.h"
|
|
#include "ofxXmlSettings.h"
|
|
#include "SurfaceStack.h"
|
|
#include "MediaServer.h"
|
|
#include "SurfaceFactory.h"
|
|
#include "SurfaceType.h"
|
|
|
|
namespace ofx {
|
|
namespace piMapper {
|
|
|
|
class SettingsLoader {
|
|
public:
|
|
static SettingsLoader * instance();
|
|
|
|
bool load(SurfaceStack & surfaces, MediaServer & mediaServer, string fileName);
|
|
bool save(SurfaceStack & surfaces, string fileName);
|
|
|
|
private:
|
|
static SettingsLoader * _instance;
|
|
|
|
BaseSurface * getTriangleSurface(ofxXmlSettings * xmlSettings);
|
|
BaseSurface * getQuadSurface(ofxXmlSettings * xmlSettings);
|
|
};
|
|
|
|
}
|
|
}
|