cocos2d-x之setFrameZoomFactor函数是什么意思

setFrameZoomFactor 调用这个函数是因为有的移动设备屏幕分辨率非常大,
比如ipad3。太大的话在电脑上看不全了,所以用setFrameZoomFactor把程序窗口缩小
所以,这个函数只能用win32,mac,linux桌面时才用到

// The resolution of ipad3 is very large. In general, PC's resolution is smaller than it.

// So we need to invoke 'setFrameZoomFactor'(only valid on desktop(win32, mac, linux)) to make the window smaller.

eglView->setFrameZoomFactor(0.1f);//把窗口缩小到实际窗口大小的0.1倍

猜你喜欢

转载自andinker.iteye.com/blog/1967578