From the top of my head the OpenGL initialisation (does not have to go through all the stuff you have to do with EGL... which is HORRID):
enable vertex arrays
enable flat shading
gl.glMatrixMode() & GLU.gluOrtho2D() >> here
I think that's about it. That happens in the "onSurfaceChanged()
" -method of rendering(Renderer) thread. This all is done extending the GLSurfaceView class. Naturally I assign the renderer to the GlSurfaceView with setRenderer() so it knows what renderer to call.
But hope that helps at least a bit.
if you want to know more about GlsurfaceView, click here