On Sat, 5 Oct, 2013 at 10:54 AM, Gary Daniels <[email protected]> wrote:

I am doing something like this:

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

But the color will not change. Is there a way to do it more like this:

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

Or will it ultimately make any difference in rendering speed?

I can specify a color for the first line and not the rest, but I'm curious as to the "correct" way to do it.

What colour are your lines? Do you want them all to be grey?

--
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