//--------------------------------------------------------------
void ofxScene::setup()
{
    if (bSetup) return;

    ofLogVerbose() << "ofxScene setup :: " << sceneID;

    selfSetup();

    bSetup = true;
}
Example #2
0
void ofx2DPro::setup(){
	cout << "SETTING UP SYSTEM " << getSystemName() << endl;
#ifdef PACKED_APP
    ofSetDataPathRoot("data/");
#endif
    
    //  Create directories if they are not there
    //
    ofDirectory dir;
    string directories[3] = {getDataPath(), "Presets/","Working/"};
    for (int i = 0; i < 3; i++) {
        string path = "";
        for(int j = 0; j <= i; j++ ){
            path += directories[j];
        }
        if(!dir.doesDirectoryExist(path)){
            dir.createDirectory(path);
        }
    }
    
    selfSetup();
    setupCoreGuis();
    selfSetupGuis();
}