PDA

View Full Version : Draw line with width



alexei_shk
01-22-2006, 10:36 PM
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

mikael_aronsson
01-22-2006, 11:04 PM
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

alexei_shk
01-22-2006, 11:49 PM
Hi,

Can you give me the code example?

Thank's
Alexei