@Override public void onDrawFrame(GL10 gl10){
  GLES20.glClearColor(1.0f,0.0f,0.0f,1.0f);
  GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
  GLES20.glEnable(GLES20.GL_DEPTH_TEST);
  GLES20.glEnable(GLES20.GL_CULL_FACE);
  GLES20.glEnable(GLES20.GL_BLEND);
  GLES20.glBlendFunc(GLES20.GL_SRC_ALPHA,GLES20.GL_ONE_MINUS_SRC_ALPHA);
  long currentTimeMillis=System.currentTimeMillis();
  updateWithDelta(currentTimeMillis - lastTimeMillis);
  lastTimeMillis=currentTimeMillis;
}

@ Override public void onDrawFrame ( GL10 gl10 ) { GLES20 . glClearColor ( 1.0f , 0.0f , 0.0f , 1.0f ) ; GLES20 . glClear ( GLES20 . GL_COLOR_BUFFER_BIT | GLES20 . GL_DEPTH_BUFFER_BIT ) ; GLES20 . glEnable ( GLES20 . GL_DEPTH_TEST ) ; GLES20 . glEnable ( GLES20 . GL_CULL_FACE ) ; GLES20 . glEnable ( GLES20 . GL_BLEND ) ; GLES20 . glBlendFunc ( GLES20 . GL_SRC_ALPHA , GLES20 . GL_ONE_MINUS_SRC_ALPHA ) ; long currentTimeMillis = System . currentTimeMillis ( ) ; updateWithDelta ( currentTimeMillis - lastTimeMillis ) ; lastTimeMillis = currentTimeMillis ; }
glsurfaceview has default 16bit depth buffer
