I am asking if is a way to change the color besides specifying it for each 
primitive:

batch.add( change the color to red )
batch.add(2, pyglet.gl.GL_LINES, myGroup,('v2i', [x1,y1,x2,y2]) #don't 
specify color
batch.add(2, pyglet.gl.GL_LINES, myGroup,('v2i', [x1,y1,x2,y2]) #don't 
specify color
batch.add( change color to blue )
batch.add(2, pyglet.gl.GL_LINES, myGroup,('v2i', [x1,y1,x2,y2]) #don't 
specify color
batch.add(2, pyglet.gl.GL_LINES, myGroup,('v2i', [x1,y1,x2,y2]) #don't 
specify color

It seems inefficient for it to have to interpret and store the same color 
info over and over.

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