PDA

View Full Version : Complex line style (2D graphics)



dimb
11-18-2004, 08:59 PM
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.

mikael_aronsson
11-19-2004, 01:32 AM
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

Aeluned
11-19-2004, 08:37 AM
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.