@Override public void onDrawFrame(GL10 gl) { GLES30.glClear(GLES30.GL_COLOR_BUFFER_BIT);
import android.opengl.GLES30; import android.opengl.GLSurfaceView; import android.opengl.Matrix;
// Draw a triangle float[] vertices = { -0.5f, -0.5f, 0.0f, 0.5f, -0.5f, 0.0f, 0.0f, 0.5f, 0.0f };