void ProtoApp::init(){ // setup audio if(usingAudio()){ gam::Sync::master().spu(audioIO().fps()); } // setup GUI mAppLabel.setValue(App::name()); mGUI << mGUITable; mTopBar.arrange(); mParamPanel.arrange(); mGUITable.arrange(); // setup model manager if(!App::name().empty()){ glv::ModelManager& MM = mGUI.modelManager(); // std::string idName = App::name(); toIdentifier(idName); MM.name(idName + "Presets"); MM.fileDir(mResourceDir); mGUI.refreshModels(); MM.add("pose", *new PoseModel(nav())); paramPanel().presetControl() .modelManager(MM) .loadFile() ; } }
void ProtoApp::init( const Window::Dim& dim, const std::string& title, double fps, Window::DisplayMode mode, double sampleRate, int blockSize, int chansOut, int chansIn ){ initAudio(sampleRate, blockSize, chansOut, chansIn); // setup audio if(usingAudio()){ //gam::Sync::master().spu(audioIO().fps()); } Window * win = initWindow(dim, title, fps, mode); mGUI.parentWindow(*win); // setup GUI mAppLabel.setValue(App::name()); mGUI << mGUITable; mTopBar.arrange(); mParamPanel.arrange(); mGUITable.arrange(); // setup model manager if(!App::name().empty()){ glv::ModelManager& MM = mGUI.modelManager(); // std::string idName = App::name(); toIdentifier(idName); MM.name(idName + "Presets"); MM.fileDir(mResourceDir); mGUI.refreshModels(); MM.add("pose", *new PoseModel(nav())); paramPanel().presetControl() .modelManager(MM) .loadFile() ; } }