Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17076

How to get screen size in "Points" or the "Render Scale"?

$
0
0

@LuisOscar wrote:

I have gone through most methods under Director and OpenGLScreen to try and get the actual render size of the device as show in here:

http://www.paintcodeapp.com/news/ultimate-guide-to-iphone-resolutions

I need to get either the render scale (Render at 2x, Render at 3x) or the screen in Points (320 width for iphone 5, 414 width for iphone 6 plus)

I can get the "Rendered Pixels" sizes easily, since many of the methods actually return this size. But I have no idea how to get either of the other 2.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17076

Trending Articles



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