[cocos2d-x篇]cocos2dX的3種螢幕尺寸調整 方式

cocos2dx使用版本︰v 2.0.4
cocosBuilder使用版本︰v 2.0 alpha 1
cocos2dx在多解析度裡提供3種螢幕尺寸顯示方式︰
  1. pEGLView->setDesignResolutionSize(designResolutionSize.width, designResolutionSize.height, kResolutionNoBorder);//從中間裁,犠牲餘邊    
  2. pEGLView->setDesignResolutionSize(designResolutionSize.width, designResolutionSize.height, kResolutionShowAll);//上下黑邊,背景全秀
  3. pEGLView->setDesignResolutionSize(designResolutionSize.width, designResolutionSize.height, kResolutionExactFit);//使用變形方式填滿螢幕

沒有留言 :

張貼留言