//--------------------------------------------------------------
void testApp::setup(){
	
	ofSetVerticalSync(true);
	ofSetFrameRate(60);
	ofBackground(0);

	lastFrameTime = ofGetElapsedTimef();

	client.setup("mpe_client_settings.xml", true); //false means you can use backthread
	client.start();
	
	ofxMPERegisterEvents(this);
}
Example #2
0
//--------------------------------------------------------------
void testApp::setup(){
	lastFrameTime = ofGetElapsedTimef();
	client.setup("mpe_client_settings.xml", true); //false means you can use backthread
	client.start();
	//ofSetWindowShape(client.getLWidth(),
	//				 client.getLHeight());
	ofSetWindowPosition(client.getXoffset(),client.getYoffset());
	ofSetVerticalSync(true);
	ofSetFrameRate(60);
	
	ofxMPERegisterEvents(this);
	
	ofSetBackgroundAuto(false);
	//	ofSetupScreenOrtho(640, 480, OF_ORIENTATION_UNKNOWN, true, -1000, 1000);
	//ofSetupScreenOrtho(ofGetWidth()	, ofGetHeight(),OF_ORIENTATION_UNKNOWN, true, -1000, 1000);
	//	Ball* ball = new Ball(ofRandom(0, client.getMWidth()),
	//						  ofRandom(0, client.getMHeight()),
	//						  client.getMWidth(),
	//						  client.getMHeight());
	//	//Ball* ball = new Ball(x, y, client.getMWidth(), client.getMHeight());
	//	//        balls.push_back(ball);
	//    balls.push_back(ball);
}