Are you asking if there is a way to set the color of everything inside an 
entire batch?

I believe the correct way would be your first option.

        for i in xrange(100):
            batch.add(2, pyglet.gl.GL_LINES, myGroup,
                ('v2i', [x1,y1,x2,y2]),
                ('c4B', [128, 128, 128, 255]*2))


On Sunday, October 6, 2013 11:14:01 AM UTC-7, Gary Daniels wrote:
>
>
> Re-reading it, I think I was not very clear.
>
> >But the color will not change.
>
> I meant that the color does not need to change for each line, so I was 
> looking for a way to add a color change to a batch so I don't have to 
> include color info with each line added:
>
> batch.add(..a color change..)
> <add primatives to batch without color info>
> batch.add(..a color change..)
> <add primatives to batch without color info>
> etc.
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to