Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > OpenGL 3D API > Re: GL_LINE_STR...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 4888 of 5017
Post > Topic >>

Re: GL_LINE_STRIP colors

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
 




 4 Posts in Topic:
GL_LINE_STRIP colors
Flark <flarkino@[EMAIL  2008-08-26 12:22:22 
Re: GL_LINE_STRIP colors
"t0rakka" <t  2008-08-27 00:49:31 
Re: GL_LINE_STRIP colors
Chris Forone <4one@[EM  2008-08-27 10:07:26 
Re: GL_LINE_STRIP colors
"jbwest" <jb  2008-08-27 10:32:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 6:06:17 CST 2008.