【GL_LINES】 独立的线段,下式中,p2与p3间没有连线。 【GL_LINE_STRIP】 连续的线段,下式中, p2与p3会连成线段。 【GL_LINE_LOOP】 参考:《计算机图形学》3.4 OpenGL画线函数。
GL_POINTS; case Lines: return GLES20.GL_LINES; case LineLoop: return GLES20.GL_LINE_LOOP; case LineStrip: return GLES20.GL_LINE_STRIP; case Triangles: return GLES20.GL_TRIANGLES; case TriangleFan: return GLES20.GL_TRIANGLE_FAN; case TriangleStrip: return GLES20.GL_TRIANGLE_STRIP; ...
I think it would make sense to use GL_LINE_STRIP as the draw mode inside the drawLines() method of Vertices. Short explanation: GL_LINES only draws a line between every two vertices while GL_LINE_STRIP draws a line between every specifie...
One way to convince yourself cloc is doing the right thing is to use its --strip-comments option to remove comments and blank lines from files, then compare the stripped-down files to originals.Let's try this out with the SQLite amalgamation, a C file containing all code needed to build ...