Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 975
Aristarhys Avatar asked Jan 20 '12 11:01

Aristarhys


2 Answers

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

like image 99
Flynn81 Avatar answered Sep 28 '22 23:09

Flynn81


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/

like image 39
Maurizio Benedetti Avatar answered Sep 28 '22 22:09

Maurizio Benedetti