当前位置:网站首页>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
边栏推荐
- Three-level distribution is becoming more and more popular. How should businesses choose the appropriate three-level distribution system?
- 剪掉ImageNet 20%数据量,模型性能不下降!Meta斯坦福等提出新方法,用知识蒸馏给数据集瘦身...
- idea用debug调试出现com.intellij.rt.debugger.agent.CaptureAgent,导致无法进行调试
- SQL learning group by multi table grouping scenario
- Unity skframework framework (XXII), runtime console runtime debugging tool
- From "chemist" to developer, from Oracle to tdengine, two important choices in my life
- Unity skframework framework (24), avatar controller third person control
- SMT32H7系列DMA和DMAMUX的一点理解
- How to empty uploaded attachments with components encapsulated by El upload
- Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制
猜你喜欢
Online chain offline integrated chain store e-commerce solution
植物大战僵尸Scratch
Why don't you recommend using products like mongodb to replace time series databases?
22-07-04 Xi'an Shanghao housing project experience summary (01)
Understand the window query function of tdengine in one article
[listening for an attribute in the array]
Develop and implement movie recommendation applet based on wechat cloud
On July 2, I invite you to TD Hero online press conference
Node の MongoDB Driver
The most comprehensive promotion strategy: online and offline promotion methods of E-commerce mall
随机推荐
小程序启动性能优化实践
How to use sqlcipher tool to decrypt encrypted database under Windows system
Design and exploration of Baidu comment Center
Fluent development: setting method of left and right alignment of child controls in row
Resolve the horizontal (vertical) sliding conflict between viewpager and WebView
Android privacy sandbox developer preview 3: privacy, security and personalized experience
STM32 simple multi-level menu (array table lookup method)
Roll up, break 35 - year - old Anxiety, animation Demonstration CPU recording Function call Process
Principle and performance analysis of lepton lossless compression
Node の MongoDB Driver
从“化学家”到开发者,从甲骨文到 TDengine,我人生的两次重要抉择
[ManageEngine] how to make good use of the report function of OpManager
基于宽表的数据建模应用
如何正确的评测视频画质
分布式数据库下子查询和 Join 等复杂 SQL 如何实现?
百度APP 基于Pipeline as Code的持续集成实践
Application of data modeling based on wide table
为什么不建议你用 MongoDB 这类产品替代时序数据库?
[app packaging error] to proceed, either fix the issues identified by lint, or modify your build script as follow
TDengine 已经支持工业英特尔 边缘洞见软件包