However this argument cannot be used in B4A, since GL10.GL_DEPTH_BUFFER_BIT is an Int. In other words, this is an error in B4A: GL10.glClear(GL10.GL_DEPTH_BUFFER_BIT Or GL10.GL_COLOR_BUFFER_BIT)
Both
gl.glClear(gl.GL_COLOR_BUFFER_BIT + gl.GL_DEPTH_BUFFER_BIT)
and
gl.glClear( Bit.Or(gl.GL_COLOR_BUFFER_BIT, gl.GL_DEPTH_BUFFER_BIT))
do in fact work OK
Thanks Informatix, I am aware of libGdx, and I hope I will eventually get there. For now I am trying to learn the basics, starting with OGL.
However, I got stuck. I am trying to port the java example in the Pro OpenGL ES for Android book, in B4A. First example worked great, 2nd example does not fly. I am baffled.