I'm trying to simply draw a rectangle with a color. I've managed to do
this in PyOpenGL alone, but I find it eluding me in pyglet.

There's no problem drawing the GL_QUADS without the color option. It shows
up nice and white on the screen. When I try to add a color, it just goes
black.

pyglet.graphics.draw(4, pyglet.gl.GL_QUADS, ('v2i', tuplewithpoints),
('c3B', tuplewithallpointsnormalcolors))


There's two questions. Is there a way of assigning the color to this quad
with only one variable instead of four? I don't want to give each vertex a
color when all of them are the same.
How do I get colors to work at all? heh..

The reference and programmers guide offer little explanation.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to pyglet-users@googlegroups.com
To unsubscribe from this group, send email to 
pyglet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to