cocos2d-x FrameSize VisibleSize WinSize
FrameSize 屏幕分辨率
WinSize DisignReslution
VisibleSize 在WinSize之内,小于或者等于WinSize
屏幕分辨率适配模式:
1.kResolutionExactFit 横向按横向比拉伸,纵向按纵向比拉伸
2.kResolutionNoBorder MAC(横向比,纵向比) 拉伸 ,会裁切
3.kResolutionShowAll MIN(横向比,纵向比) 拉伸 ,会出现黑边
4.kResolutionFixedHeight 高度撑满,纵向裁切 ,配合缩放因子 RH/DH
5.kResolutionFixedWidth 宽度撑满,纵向裁切 ,配合缩放因子 RW/DW
6.kResolutionUnKnown
enumResolutionPolicy{//Theentireapplicationisvisibleinthespecifiedareawithouttryingtopreservetheoriginalaspectratio.//Distortioncanoccur,andtheapplicationmayappearstretchedorcompressed.kResolutionExactFit,//Theentireapplicationfillsthespecifiedarea,withoutdistortionbutpossiblywithsomecropping,//whilemaintainingtheoriginalaspectratiooftheapplication.kResolutionNoBorder,//Theentireapplicationisvisibleinthespecifiedareawithoutdistortionwhilemaintainingtheoriginal//aspectratiooftheapplication.Borderscanappearontwosidesoftheapplication.kResolutionShowAll,//Theapplicationtakestheheightofthedesignresolutionsizeandmodifiesthewidthoftheinternal//canvassothatitfitstheaspectratioofthedevice//nodistortionwilloccurhoweveryoumustmakesureyourapplicationworksondifferent//aspectratioskResolutionFixedHeight,//Theapplicationtakesthewidthofthedesignresolutionsizeandmodifiestheheightoftheinternal//canvassothatitfitstheaspectratioofthedevice//nodistortionwilloccurhoweveryoumustmakesureyourapplicationworksondifferent//aspectratioskResolutionFixedWidth,kResolutionUnKnown,};
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。