创建一个DrawLine Activity,定义四个顶点: float vertexArray[] = { -0.8f, -0.4f * 1.732f, 0.0f, -0.4f, 0.4f * 1.732f, 0.0f, 0.0f, -0.4f * 1.732f, 0.0f, 0.4f, 0.4f * 1.732f, 0.0f, }; 分别以三种模式GL_LINES,GL_LINE_STRIP,GL_LINE_LOOP 来绘制直线: public void DrawScene(GL10 gl)…