void ofApp::setup(){ ofEnableDataPath(); setupConstants(); setupGlobals(); setupGL(); setupGraph(forward_graph, forward_graph_path); setupParameters(); cout<<params<<endl; forward_graph->initFbos(); setupAudio(); // if(use_camera){ // camera.setVerbose(true); // camera.listDevices(); // camera.initGrabber(render_width, render_height); // } cout<<"setup complete"<<endl; }
/** * Analyzer class contructor, that initializes Lua and * loads Lua base libraries * * @param script script as a string */ Analyzer::Analyzer(QString script) { msgBox = new QMessageBox(); scriptName = script; L = lua_open(); //! initialize Lua luaL_openlibs(L); //! load Lua base libraries try { setupConstants(); } catch (QString exMsg) { msgBox->critical(0, "Script error", exMsg,QMessageBox::Ok,QMessageBox::NoButton); } }