diff --git a/src/ofxPiMapper.cpp b/src/ofxPiMapper.cpp index c5e49e0..7961dac 100644 --- a/src/ofxPiMapper.cpp +++ b/src/ofxPiMapper.cpp @@ -1,17 +1,19 @@ #include "ofxPiMapper.h" -ofxPiMapper::ofxPiMapper(){ - _application = new ofx::piMapper::Application(); -} +ofxPiMapper::ofxPiMapper(){} void ofxPiMapper::setup(){ - _application->setup(); + _application.setup(); } void ofxPiMapper::draw(){ - _application->draw(); + _application.draw(); } void ofxPiMapper::registerFboSource(ofx::piMapper::FboSource & fboSource){ - _application->addFboSource(fboSource); + _application.addFboSource(fboSource); +} + +bool ofxPiMapper::loadXmlSettings(string fileName){ + return _application.loadXmlSettings(fileName); } \ No newline at end of file diff --git a/src/ofxPiMapper.h b/src/ofxPiMapper.h index 2eb2a01..358df78 100644 --- a/src/ofxPiMapper.h +++ b/src/ofxPiMapper.h @@ -29,5 +29,5 @@ class ofxPiMapper { bool loadXmlSettings(string fileName); private: - ofx::piMapper::Application * _application; + ofx::piMapper::Application _application; }; \ No newline at end of file