当前位置:网站首页>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
边栏推荐
- uni-app---uni. Navigateto jump parameter use
- How Windows bat script automatically executes sqlcipher command
- 植物大战僵尸Scratch
- Small program startup performance optimization practice
- 22-07-04 Xi'an Shanghao housing project experience summary (01)
- idea用debug调试出现com.intellij.rt.debugger.agent.CaptureAgent,导致无法进行调试
- Application of data modeling based on wide table
- What should we pay attention to when developing B2C websites?
- 如何正确的评测视频画质
- [200 opencv routines] 219 Add digital watermark (blind watermark)
猜你喜欢
[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution
How to choose the right chain management software?
Tdengine already supports the industrial Intel edge insight package
Node-RED系列(二九):使用slider与chart节点来实现双折线时间序列图
TDengine ×英特尔边缘洞见软件包 加速传统行业的数字化转型
What about wechat mall? 5 tips to clear your mind
Community group buying exploded overnight. How should this new model of e-commerce operate?
LeetCode 496. Next larger element I
剪掉ImageNet 20%数据量,模型性能不下降!Meta斯坦福等提出新方法,用知识蒸馏给数据集瘦身...
Develop and implement movie recommendation applet based on wechat cloud
随机推荐
idea用debug调试出现com.intellij.rt.debugger.agent.CaptureAgent,导致无法进行调试
TDengine 连接器上线 Google Data Studio 应用商店
搞数据库是不是越老越吃香?
分布式数据库下子查询和 Join 等复杂 SQL 如何实现?
Apache dolphin scheduler system architecture design
LeetCode 503. Next bigger Element II
【对象数组的排序】
[how to disable El table]
写入速度提升数十倍,TDengine 在拓斯达智能工厂解决方案上的应用
【对象数组a与对象数组b取出id不同元素赋值给新的数组】
A keepalived high availability accident made me learn it again
Unity skframework framework (24), avatar controller third person control
How to improve the operation efficiency of intra city distribution
Tdengine can read and write through dataX, a data synchronization tool
Uncover the practice of Baidu intelligent testing in the field of automatic test execution
[object array A and object array B take out different elements of ID and assign them to the new array]
【数组的中的某个属性的监听】
Charm of code language
How to use sqlcipher tool to decrypt encrypted database under Windows system
Optimize database queries using the cursor object of SQLite