示例#1
0
//--------------------------------------------------------------
void testApp::setup()
{
    ofSetFrameRate(60);
	ofEnableSmoothing(); 
	ofBackground(0); 
	
	setGUI1(); 
	setGUI2(); 
    setGUI3(); 
    setGUI4();     

    gui1->setDrawBack(false);
    gui2->setDrawBack(false);
    gui3->setDrawBack(false);
    gui4->setDrawBack(false);    

//    gui1->setDrawBack(true);
//    gui2->setDrawBack(true);
//    gui3->setDrawBack(true);
//    gui4->setDrawBack(true);    
    
//    gui1->setDrawPadding(false);
//    gui2->setDrawPadding(false);
//    gui3->setDrawPadding(false);
//    
    ofBackground(red, green, blue);
    
    sender.setup(HOST, PORT);
    receiver.setup(PORT_FROM_VIZ);
}
示例#2
0
//--------------------------------------------------------------
void testApp::setup()
{ 
	ofEnableSmoothing(); 
	ofBackground(0); 
	
	setGUI1(); 
	setGUI2(); 
    setGUI3(); 
    setGUI4();     

    gui1->setDrawBack(false);
    gui2->setDrawBack(false);
    gui3->setDrawBack(false);
    gui4->setDrawBack(false);    

//    gui1->setDrawBack(true);
//    gui2->setDrawBack(true);
//    gui3->setDrawBack(true);
//    gui4->setDrawBack(true);    
    
//    gui1->setDrawPadding(false);
//    gui2->setDrawPadding(false);
//    gui3->setDrawPadding(false);
//    
    ofBackground(red, green, blue); 
}
示例#3
0
文件: ofApp.cpp 项目: Aharobot/ofxUI
//--------------------------------------------------------------
void ofApp::setup(){
	
    ofSetCircleResolution(120);
    red = 233; blue = 233; green = 233;
    hideGUI = false;
    bdrawGrid = false;
	bdrawPadding = false;

    ddl = NULL;
    textInput = NULL;
    img = new ofImage();
    img->loadImage("nerd_me.png");
    buffer = new float[256];
    for(int i = 0; i < 256; i++) { buffer[i] = ofNoise(i/100.0); }
    
	setGUI1();
	setGUI2();
    setGUI3();
    setGUI4();
    setGUI5();
    
    gui1->loadSettings("gui1Settings.xml");
    gui2->loadSettings("gui2Settings.xml");
    gui3->loadSettings("gui3Settings.xml");
    gui4->loadSettings("gui4Settings.xml");
    gui5->loadSettings("gui5Settings.xml");
}
示例#4
0
文件: ofApp.cpp 项目: Aharobot/ofxUI
//--------------------------------------------------------------
void ofApp::setup(){
	
    red = 233; blue = 52; green = 27;
    hideGUI = false;
    bdrawGrid = false;
	bdrawPadding = false;
    
    img = new ofImage();
    img->loadImage("nerd_me.png");
    buffer = new float[256];
    for(int i = 0; i < 256; i++) { buffer[i] = ofNoise(i/100.0); }
    
	setGUI1();
	setGUI2();
    setGUI3();
    setGUI4();
    setGUI5();
    
    gui1->loadSettings("gui1.xml");
    gui2->loadSettings("gui2.xml");
    gui3->loadSettings("gui3.xml");
    gui4->loadSettings("gui4.xml");
    gui5->loadSettings("gui5.xml");
}