Hi everyone !
I have a little problem, i’m making a little software with leap motion, to import some 3D, to make me a personnal template for other 3D that i want to do.
So, i use ofxGUI to build my interface, it is working fine with my old program (i want to simplify it), but not here, i do not know why.
it’s telling me :
" call to implicity-deleted default constructor ‘ofApp’ "
Let me show you (main.cpp) :
#include “ofMain.h”
#include “ofApp.h”
#include “ofAppGLFWWindow.h”
//========================================================================
int main( ){
//ofSetupOpenGL(1368,768,OF_FULLSCREEN); // <-------- setup the GL context
ofGLFWWindowSettings settings;
settings.width = 1920;
settings.height = 1080;
settings.setPosition(ofVec2f(1440,0));
settings.resizable = true;
shared_ptr<ofAppBaseWindow> mainWindow = ofCreateWindow(settings);
settings.width = 300;
settings.height = 300;
settings.setPosition(ofVec2f(0,0));
settings.resizable = true;
// uncomment next line to share main's OpenGL resources with gui
settings.shareContextWith = mainWindow;
shared_ptr<ofAppBaseWindow> guiWindow = ofCreateWindow(settings);
guiWindow->setVerticalSync(false);
shared_ptr<ofApp> mainApp(new ofApp);
mainApp->setupGui();
ofAddListener(guiWindow->events().draw,mainApp.get(),&ofApp::drawGui);
ofRunApp(mainWindow, mainApp);
ofRunMainLoop();
}