forum.boolean.name

forum.boolean.name (http://forum.boolean.name/index.php)
-   Программирование для мобильных устройств (http://forum.boolean.name/forumdisplay.php?f=173)
-   -   Определить версию Open GL? (http://forum.boolean.name/showthread.php?t=20528)

Evgen 10.01.2017 10:46

Определить версию Open GL?
 
Как определить версию Open GL устройства android программно? есть ли функция для этого?

Evgen 10.01.2017 10:54

Ответ: Определить версию Open GL?
 
Наверно можно через уровень API.

https://docs.unity3d.com/ScriptRefer...ingSystem.html

А потом в зависимости от API версию GL

OpenGL ES 1.0 and 1.1 - This API specification is supported by Android 1.0 and higher.
OpenGL ES 2.0 - This API specification is supported by Android 2.2 (API level 8 ) and higher.
OpenGL ES 3.0 - This API specification is supported by Android 4.3 (API level 18 ) and higher.
OpenGL ES 3.1 - This API specification is supported by Android 5.0 (API level 21) and higher.

mr.DIMAS 10.01.2017 11:37

Ответ: Определить версию Open GL?
 
glGetString(GL_VERSION)

https://www.khronos.org/opengles/sdk...etString.xhtml

RegIon 10.01.2017 11:44

Ответ: Определить версию Open GL?
 
Цитата:

Сообщение от Evgen (Сообщение 311291)
Наверно можно через уровень API.

https://docs.unity3d.com/ScriptRefer...ingSystem.html

А потом в зависимости от API версию GL

OpenGL ES 1.0 and 1.1 - This API specification is supported by Android 1.0 and higher.
OpenGL ES 2.0 - This API specification is supported by Android 2.2 (API level 8 ) and higher.
OpenGL ES 3.0 - This API specification is supported by Android 4.3 (API level 18 ) and higher.
OpenGL ES 3.1 - This API specification is supported by Android 5.0 (API level 21) and higher.

Сколько тебе раз повторять? У меня андроид 5.1, но только ES2.0, это аппаратная приблуда, и у многих, у кого 5.* нету 3.0
https://forum.unity3d.com/threads/ho...3.271998/ES3.0.

Evgen 10.01.2017 13:02

Ответ: Определить версию Open GL?
 
Цитата:

Сообщение от RegIon (Сообщение 311293)
Сколько тебе раз повторять? У меня андроид 5.1, но только ES2.0, это аппаратная приблуда, и у многих, у кого 5.* нету 3.0
https://forum.unity3d.com/threads/ho...3.271998/ES3.0.

Откуда же мне знать :)

Evgen 10.01.2017 13:08

Ответ: Определить версию Open GL?
 
Цитата:

Сообщение от mr.DIMAS (Сообщение 311292)

На Unity такой код не пройдет, тогда уж так:

https://docs.unity3d.com/ScriptRefer...ceVersion.html


Часовой пояс GMT +4, время: 19:07.

vBulletin® Version 3.6.5.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot