未命名 3
16lz
2021-12-04
android支持哪些opengl混合模式
我使用以下的混合模式在win32上可以正确运行,但在android上没有效果,android不支持这样的混合模式吗 ? blendFunc.src = GL_ONE_MINUS_DST_ALPHA; blendFunc.dst = GL_ONE; |
问题解决:
Specifying the android.view.SurfaceBy default GLSurfaceView will create a PixelFormat.RGB_565 format surface. If a translucent surface is required, call getHolder().setFormat(PixelFormat.TRANSLUCENT). The exact format of a TRANSLUCENT surface is device dependent, but it will be a 32-bit-per-pixel surface with 8 bits per component.
在setRender之前调用setEGLConfigChooser(8, 8, 8, 8, 16, 0);
getHolder().setFormat(PixelFormat.TRANSLUCENT);即可
更多相关文章
- 2011.09.07(2)——— android 跨进程通信之隐式intent
- Android按返回键退出程序但不销毁
- Android(安卓)调用手机系统照相机拍照
- Android下调用收发短信邮件等
- Android(安卓)onSaveInstanceState和onRestoreInstanceState触发
- Android(安卓)NFC架构分析
- Android(安卓)View预估大小
- android横竖屏切换不重启activity
- 2013.03.19(3)———android ActivityGroup的一些问题