Hello,
Hello I want to enable the iphone5 resolution.
This post here: http://www.cocos2d-x.org/boards/6/topics/15980
Tells me I need to set ResolutionPolicy with CCEGLView::sharedOpenGLView()->setDesignResolutionSize().
However this method requires me to pass in the width and height manually. I want cocos2dx to report the correct resolution automatically but all of the following methods incorrectly report 640x960 when I run the program on my iphone5:
CCDirector::sharedDirector()->getWinSize()
CCDirector::sharedDirector()->getWinSizeInPixels()
CCEGLView::sharedOpenGLView()->getDesignResolutionSize()
CCDirector::sharedDirector()->getVisibleSize()
How do I get the above methods to report the correct resolution?
How do I enable iphone5 resolution in cocos2dx?
I want to be able to determine which resource directory to use (with CCFileUtils::sharedFileUtils()->setResourceDirectory()) by evaluating the resolution reported by cocos2dx. But as it reports the wrong resolution I can’t do this.