Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

IOS APP screenSize not correct

$
0
0

When i make an IOS App,and set

settings.enableRetina = true; // enables retina resolution if the device supports it.

in main.mm

and i use ofGetWidth() and ofGetHeight()

  void ofApp::draw(){
     ofBackground(0);
     randomPol.draw();

     ofDrawBitmapString(ofGetWidth(), 20, 20);
     ofDrawBitmapString(ofGetHeight(), 20, 80);
     ofDrawBitmapString("mouseX:" + ofToString(a) + " mouseY:" + ofToString(b), 20,140);


  // ofDrawBitmapString("mouseX:" + ofToString(mouseX) + " mouseY:" + ofToString(mouseY), 20,140);
ofDrawCircle(mouseX,mouseY,5);
}

I use iphone 6 plus, it's resolution is 1920 X 1080, why it will become 640 X 1136 ?Is there anyway i can change the setting?


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>