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