OpenGL dashed line

2.6k Views Asked by At

I'm trying to draw a 2d grid in opengl which contains dashed lines. I'm using glEnble(GL_LINE_STIPPLE) / glLineStipple(...) to do so. The problem is when I'm trying to drag the scene, dashes begin to move along the line and that is rather annoying, especialy if I'm drawing a circle or an arc - it looks like hypnosis! Does anyone know how to get out of this effect?

0

There are 0 best solutions below