Draw line with width

Hi,

I need to draw line with width than the ends of line must be rounded. I have tryed the function glLineWidth but the ends doesn’t rounded.

So how can I do this?

Thank’s
Alexei

You can get pretty ok lines if you enable antialiasing using glEnable( GL_LINE_SMOOTH); you might also want to use glHint(); and of course you must enable blending so it is a little messy

Mikael

Hi,

Can you give me the code example?

Thank’s
Alexei