当前位置:网站首页>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
边栏推荐
- La voie de l'évolution du système intelligent d'inspection et d'ordonnancement des petites procédures de Baidu
- What are the advantages of the live teaching system to improve learning quickly?
- The popularity of B2B2C continues to rise. What are the benefits of enterprises doing multi-user mall system?
- 正式上架!TDengine 插件入驻 Grafana 官网
- ThreadLocal source code learning
- Data visualization platform based on template configuration
- 代码语言的魅力
- LeetCode 503. Next bigger Element II
- The writing speed is increased by dozens of times, and the application of tdengine in tostar intelligent factory solution
- What should we pay attention to when developing B2C websites?
猜你喜欢
The writing speed is increased by dozens of times, and the application of tdengine in tostar intelligent factory solution
移动端异构运算技术-GPU OpenCL编程(进阶篇)
百度智能小程序巡检调度方案演进之路
TDengine × Intel edge insight software package accelerates the digital transformation of traditional industries
干货整理!ERP在制造业的发展趋势如何,看这一篇就够了
Unity skframework framework (XXII), runtime console runtime debugging tool
TDengine可通过数据同步工具 DataX读写
Node-RED系列(二九):使用slider与chart节点来实现双折线时间序列图
[sourcetree configure SSH and use]
What about wechat mall? 5 tips to clear your mind
随机推荐
为什么不建议你用 MongoDB 这类产品替代时序数据库?
[JS sort according to the attributes in the object array]
Lepton 无损压缩原理及性能分析
Understanding of smt32h7 series DMA and DMAMUX
Go 语言使用 MySQL 的常见故障分析和应对方法
Tdengine connector goes online Google Data Studio app store
百度APP 基于Pipeline as Code的持续集成实践
卷起来,突破35岁焦虑,动画演示CPU记录函数调用过程
Community group buying exploded overnight. How should this new model of e-commerce operate?
Apache DolphinScheduler 系统架构设计
LeetCode 503. Next bigger Element II
植物大战僵尸Scratch
Fluent development: setting method of left and right alignment of child controls in row
Community group buying has triggered heated discussion. How does this model work?
如何正确的评测视频画质
What about wechat mall? 5 tips to clear your mind
Design and exploration of Baidu comment Center
Solve the problem of no all pattern found during Navicat activation and registration
初识结构体
MySQL installation configuration and creation of databases and tables