Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 opengl 中绘制一个包含虚线的二维网格。我正在使用glEnble(GL_LINE_STIPPLE)/glLineStipple(...)这样做。问题是当我试图拖动场景时,破折号开始沿着线移动,这很烦人,特别是如果我正在画一个圆或弧线 - 它看起来像催眠!有谁知道如何摆脱这种影响?
glEnble(GL_LINE_STIPPLE)
glLineStipple(...)