by "jbwest" <jbwest@[EMAIL PROTECTED]
>
Aug 27, 2008 at 10:32 AM
"Chris Forone" <4one@[EMAIL PROTECTED]
> wrote in message
news:g93200$e1g$1@[EMAIL PROTECTED]
> Flark schrieb:
>> Hi folks,
>>
>> I was wonder, if I need to draw a series of lines
>> each of which is a different color, does GL_LINE_STRIP
>> allow that?
>>
>> Thanks.
>
> glBegin(GL_LINE_STRIP);
> glVertex(...);
>
> glColor(...); // first line color
> glVertex(...); //
>
> glColor(...); // second line color
> glVertex(...);
>
> ...
> ...
> glEnd();
Yep, Nothing wrong with your pseudocode above. Make sure you have FLAT
shading and no lights.Similarly doable with Vertex buffer's & etc (much
faster).
jbw