如何在cocos2d-x框架中禁用视网膜图像缩放 [英] how to disable retina image scaling in cocos2d-x framework

查看:169
本文介绍了如何在cocos2d-x框架中禁用视网膜图像缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将我的Android游戏移植到osx我在有视网膜显示器的设备有问题,精灵是未经调整缩放或精灵偏移量缩放,并没有到位,我想有一个可能性控制

I'm porting my android game to osx I'm having problems on devices with retina display, the sprites are either unnececary scaled or the sprites offset are scaled and not in place, I'd like to have a possibility to control this by myself.

是否可以在没有比例因子的视网膜模式下工作,我能以某种方式启用全屏960x640的使用,并且比例因子仍设置为1.0?

Is it possible to work in retina mode without scale factor, can I somehow enable usage of a full screen 960x640 and with scale factor still set to 1.0?

您能告诉我该怎么办吗?

Could you please tell me how can I do it?

推荐答案

您可以在 AppDelegate.cpp 文件中禁用视网膜显示。在 didFinishLaunching 中将RetinaDisplay设置为false。 :)希望这个工作

You can disable retinal display in AppDelegate.cpp file. In your didFinishLaunching set RetinaDisplay to false. :) Hope this works

这篇关于如何在cocos2d-x框架中禁用视网膜图像缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆