Complex line style (2D graphics)

I need to draw lines/curves using complex line style (pattern). Pattern is defined as bitmap. If someone knows how to do it, please help. Thanks.

Hi !

If you can’t use glLineStipple there isn’t much you can do unless you want to render it yourself using line segments/points.

Mikael

you can enable texture mapping and map the texture onto the line. If you needed a dotted line for example your bitmap would have alpha samples of value 0 where the line should dissapear.