我正在尝试使用该函数设置渲染格式 CCTexture2D.setDefaultAlphaPixelFormat(Bitmap.Config.ARGB_8888);
但它给我一个错误
找不到符号方法 setDefaultAlphaPixelFormat(android.graphics.Bitmap.Config)
谢谢
最佳答案
给你,在你设置 View 的地方添加这个 对于 32 位
mGLSurfaceView = new CCGLSurfaceView(this);
mGLSurfaceView.setEGLConfigChooser(8,8,8,8,0,0);
mGLSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT);
setContentView(mGLSurfaceView);
关于android - 无法在 Cocos2d for android 上设置 PixelFormat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9666704/