Stipple Problem - solve with textures?

I need to apply dash patterns to lines such that the patterns scale with the window size. I’m using the regular stipple functions right now, but when the window is resized the pattern doesn’t shrink or expand to preserve the number of dashes on a given line.

Is this something that can be done with textures (or some other method)? If so, does anyone know of a good tutorial on applying 1-D textures to lines? I’ve searched high and low and have found nothing. Thanks in advance for any help you can offer.

Yes it could.
the method is the same as when using 2D textures
Only that you use a 1D texture and 1D texture coordinates.
You could also use 2D textures if you don’t want to do that.