Android OpenGL ES 2.0 emulator

ぃ、小莉子 提交于 2019-11-26 08:24:52

问题


Well i have a device which supports OpenGl ES 2.0 (HTC Desire), and of course deploy app on device much faster then on emulator. Default android emulator does not support 2.0, androidX86 project and similiar androbox project does not support native code (NDK) so even Hello-Jni crash on them (all samples works fine on standart AVD except Hello-GL2 sample ofc), don\'t know supports they a OpenGL ES 2.0 or not, please tell me.

So if there is a development in native way (NDK) with OpenGl 2.0 support - how is possible to test app without device?


回答1:


Update: As correctly stated by a StackOverflow user, the android emulator now supports OpenGL ES 2.0 (Feb 2017)

https://sites.google.com/a/android.com/tools/recent/androidemulatorrevision2530feb2017


As stated by Google itself, in the official Android documentation, the Android emulator does not support yet the OpenGL ES 2.0 features.

Please refer to this official document.

http://developer.android.com/resources/tutorials/opengl/opengl-es20.html

I hope this answers your question.

For OpenGles20 emulator you can use GenyMotion www.genymotion.com/




回答2:


The emulator now supports OpenGL: http://android-developers.blogspot.com/2012/04/faster-emulator-with-better-hardware.html

Be sure to add the GPU emulation hardware property and set it to yes when creating the avd (per the link below):

http://developer.android.com/tools/devices/emulator.html




回答3:


As of Feb 2017, emulator 25.3.0 supports OpenGL 2.0 fully.

https://sites.google.com/a/android.com/tools/recent/androidemulatorrevision2530feb2017

Fully GLES 2.0 compliant. Given a host GPU that has conformant desktop OpenGL drivers, the emulator now passes 100% of CTS dEQP-GLES2 must-pass.

After it stabilizes, assuming there are no critical bugs with it, you should be able to test with it.




回答4:


you can use the intel based emulator currently released. Just update your sdk and you can run the open gl application on the emulator too.



来源:https://stackoverflow.com/questions/8941016/android-opengl-es-2-0-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!