LoginSignup
5
1

More than 3 years have passed since last update.

Androidの端末がサポートするOpenGL ESのバージョンの調べ方

Last updated at Posted at 2019-02-20

AndroidManifest.xmlのandroid:glEsVersionによると次にように定義されている。

アプリに必要な OpenGL ES のバージョン。上位 16 ビットはメジャー番号、下位 16 ビットはマイナー番号を表します。 たとえば、OpenGL ES バージョン 2.0 を指定するには、値に "0x00020000" を設定します。また、OpenGL ES 3.2 を指定する場合は、値に "0x00030002" を設定します。

この値はbuild.propのro.opengles.versionで調べられる。

adb shell getprop ro.opengles.version

この値は10進数なので16進数に変換すると分かりやすい。

OpenGL ESのバージョン android:glEsVersion ro.opengles.version
OpenGL ES 1.0 0x00010000 65536
OpenGL ES 1.1 0x00010001 65537
OpenGL ES 2.0 0x00020000 131072
OpenGL ES 3.0 0x00030000 196608
OpenGL ES 3.1 0x00030001 196609
OpenGL ES 3.2 0x00030002 196610

参考

5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1