[英]Can I choose the OpenGL version my Android app uses at runtime?
Does Android support being able to choose which version of OpenGLES at runtime? Android是否支持能够在运行时选择哪个版本的OpenGLES?
Say I want to run my game on an old Android device that supports only 1.1 and a new Android device that has 2.0. 假设我想在仅支持1.1的旧Android设备和具有2.0的新Android设备上运行游戏。 Can I detect and then choose which version of OpenGLES to instantiate?
我可以检测然后选择要实例化的OpenGLES版本吗?
你当然可以 。
Might android:glEsVersion work as well from the Manifest? 清单清单中的android:glEsVersion也可以正常工作吗?
I use this to target 1.1.. 我以此为目标1.1 ..
<uses-feature android:required="true" android:glEsVersion="0x00010001" />
Or is the question more like, I want to write code that can use either version and change the code being used at runtime... 还是这个问题更像是,我想编写可以使用这两个版本的代码并更改运行时正在使用的代码...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.