简体   繁体   中英

Android OpenGL ES 2.0 emulator

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?

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

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/

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM