【GL_LINES】 独立的线段,下式中,p2与p3间没有连线。 【GL_LINE_STRIP】 连续的线段,下式中, p2与p3会连成线段。 【GL_LINE_LOOP】 参考:《计算机图形学》3.4 OpenGL画线函数。
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 specified vertex. Link to documentation. I've attached two...
百度试题 结果1 题目要得到如右图示效果,glBegin() 函数类型参数可取为( ) A. GL_POLYGON B. GL_LINES C. GL_LINE_STRIP D. GL_LINE_LOOP 相关知识点: 试题来源: 解析 C 反馈 收藏