use EGL and GLESv2 in 3d code