示例#1
0
//--------------------------------------------------
int ofGetWindowWidth(){
	return (int)window->getWindowSize().x;
}
示例#2
0
//--------------------------------------------------
int ofGetWindowHeight(){
	return (int)window->getWindowSize().y;
}
示例#3
0
//--------------------------------------------------
ofPoint	ofGetWindowSize() {
	//this can't be return ofPoint(ofGetWidth(), ofGetHeight()) as width and height change based on orientation. 
	return window->getWindowSize();
}