Cocos2dx Android的我破碎的现象后推出是一个图像精灵onResume活动 [英] Cocos2dx Android I'm broken phenomenon after the launch is an image sprite onResume Activity

查看:197
本文介绍了Cocos2dx Android的我破碎的现象后推出是一个图像精灵onResume活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CCTexture2D *t = new CCTexture2D();
t->initWithData(imageData, kCCTexture2DPixelFormat_RGBA8888, sprite->getTexture()->getPixelsWide(), sprite->getTexture()->getPixelsHigh(), sprite->getTexture()->getContentSize());

CCSprite *ret = CCSprite::createWithTexture(t);

在这种方式中,只有标题和精灵状现象被创建

In this way, only the title and sprite-like phenomenon is created.

CCSprite *沤上海滩雪碧水的效果,自定义图片。
IOS,Android的,没有任何问题,在onPause() - > onResume(a)至
惩戒图像变黑

CCSprite *ret the effect of the water on the Beach the Sprite to customize the image. IOS, Android, without any problems, the onPause ()-> onResume (a) through Ret image turns black

如何解决呢?

推荐答案

连我面临着同样的问题。您需要在CCPlatformMacros.h,Cocos2dxGLSurfaceView.java和main.cpp中的变化(你JNI文件夹)。

Even i faced the same problem. You need to make changes in CCPlatformMacros.h, Cocos2dxGLSurfaceView.java and main.cpp( in you jni folder).

您应该去throught本作详细的修改 https://github.com/cocos2d/的cocos2d-X /拉/ 2384

You should go throught this for detailed changes https://github.com/cocos2d/cocos2d-x/pull/2384.

这篇关于Cocos2dx Android的我破碎的现象后推出是一个图像精灵onResume活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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