当前位置:网站首页>Openes version query
Openes version query
2022-07-05 09:53:00 【Anemone】
Android OpenES edition
Version statement
<!-- Tell the system this app requires OpenGL ES 2.0. -->
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
Version query
Method 1
ActivityManager activityManager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo();
Log.e("MainActivity", "version: " + Integer.toHexString(configurationInfo.reqGlEsVersion));
Method 2
GL gl from Renderer Of onSurfaceCreated obtain
gl.glGetString(GL10.GL_VERSION)
summary
For runtime determination OpenGL ES Version of , We can get it first configurationInfo.reqGlEsVersion
And then setRenderer() Pre invocation setEGLContextClientVersion();
other
have access to EGLContextFactory establish EGLContext.( For example, you can try to create a higher version EGLContext, Determine whether the higher version is supported OpenGL ES)
Reference resources
[1]:https://blog.csdn.net/JektonLuo/article/details/79521382
[2]:https://developer.android.google.cn/guide/topics/graphics/opengl?hl=en#version-check
边栏推荐
- What should we pay attention to when developing B2C websites?
- 卷起來,突破35歲焦慮,動畫演示CPU記錄函數調用過程
- MYSQL 对字符串类型排序不生效问题
- 从“化学家”到开发者,从甲骨文到TDengine,我人生的两次重要抉择
- Evolution of Baidu intelligent applet patrol scheduling scheme
- Viewpager pageradapter notifydatasetchanged invalid problem
- SQL learning alter add new field
- Dry goods sorting! How about the development trend of ERP in the manufacturing industry? It's enough to read this article
- Flutter development: use safearea
- Small program startup performance optimization practice
猜你喜欢
mysql安装配置以及创建数据库和表
A keepalived high availability accident made me learn it again
cent7安装Oracle数据库报错
Unity skframework framework (XXII), runtime console runtime debugging tool
Officially launched! Tdengine plug-in enters the official website of grafana
Unity SKFramework框架(二十二)、Runtime Console 运行时调试工具
代码语言的魅力
H.265编码原理入门
Roll up, break through 35 year old anxiety, and animate the CPU to record the function call process
MySQL installation configuration and creation of databases and tables
随机推荐
H. 265 introduction to coding principles
【两个对象合并成一个对象】
Go 语言使用 MySQL 的常见故障分析和应对方法
[app packaging error] to proceed, either fix the issues identified by lint, or modify your build script as follow
LeetCode 556. Next bigger element III
uni-app---uni. Navigateto jump parameter use
[sorting of object array]
ThreadLocal source code learning
How to use sqlcipher tool to decrypt encrypted database under Windows system
Small program startup performance optimization practice
TDengine 离线升级流程
LeetCode 503. Next bigger Element II
Unity skframework framework (24), avatar controller third person control
TDengine ×英特尔边缘洞见软件包 加速传统行业的数字化转型
Principle and performance analysis of lepton lossless compression
卷起来,突破35岁焦虑,动画演示CPU记录函数调用过程
正式上架!TDengine 插件入驻 Grafana 官网
Are databases more popular as they get older?
cent7安装Oracle数据库报错
卷起來,突破35歲焦慮,動畫演示CPU記錄函數調用過程