para su búsqueda
Advantages of Using OpenGL ES 3.1 on Android There are a range of benefits to using OpenGL ES 3.1 in Android, including:
High-performance graphics
OpenGL ES 3.1 represents founded off the OpenGL 4.5 API, however has gotten streamlined for use on portable devices & various integrated systems. This delivers a set of recent capabilities and upgrades over prior editions of OpenGL ES, such as: opengl es 3.1 android
nonpublic static final string TAG = "OpenGLES31Example"; private float[] mvpMatrix = new float[16]; public OpenGLES31Example(Context context) super(context); setEGLContextClientVersion(3); setEGLConfigChooser(8, 8, 8, 8, 16, 0); setRenderer(new Renderer()); private type Renderer implements GLSurfaceView.Renderer @Override exposed void onSurfaceCreated(GL10 gl, EGLConfig config) GLES30.glClearColor(1.0f, 0.0f, 0.0f, 1.0f); @Override public void onDrawFrame(GL10 gl) GLES30.glClear(GLES30.GL_COLOR_BUFFER_BIT); GLES30.glUniformMatrix4fv(mvpMatrix, 1, false, mvpMatrix, 0); GLES30.glDrawArrays(GLES30.GL_TRIANGLES, 0, 3); @Override public void onSurfaceChanged(GL10 gl, int width, int h) GLES30.glViewport(0, 0, width, height); Advantages of Using OpenGL ES 3