1

我正在尝试使用该功能设置渲染格式CCTexture2D.setDefaultAlphaPixelFormat(Bitmap.Config.ARGB_8888);

但它给了我一个错误

cannot find symbol method setDefaultAlphaPixelFormat(android.graphics.Bitmap.Config)

谢谢

4

1 回答 1

1

给你,在你设置视图的地方添加这个 32位

 mGLSurfaceView = new CCGLSurfaceView(this);    
 mGLSurfaceView.setEGLConfigChooser(8,8,8,8,0,0);
 mGLSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT);
 setContentView(mGLSurfaceView);
于 2012-04-18T07:06:17.237 回答