line Pattern

Hi,

I want to draw lines with the following patterns :

As you can see, these are 2D patterns (not 1D).

Normally with OpenGL, we can define a 1D pattern for the stipple mode.

Do you have a solution for that ?
Do I have to draw two lines for the pattern = ?
Do I have to code an specific functions to draw a line with a 2D patterns ? ==> it must be very difficult to code it.

Thanks in advance for your help…

Bye ;oD
Mop

Why can’t you simply draw a texture-mapped line ?

If you need the “pattern” to remain in screen space, you can use automatic texture coordinates generation to “place” the stipple origin/scale.

Y.