2009/10/27 Ben Sizer <[email protected]>:
>
> [...]
>
> What I don't understand is why pyglet is neither using the supplied
> colour values or raising some sort of error. This smaller example
> demonstrates the same problem.
>
> [...]
>        vertex_list = pyglet.graphics.vertex_list(3,
>            ('v2i', verts),
>            ('c3i', cols) )
> [...]

You specify the color format as "c3i", where "i" means GLint. 255 on a
GLint scale would be very close to black. Try "c3B" instead for
GLubyte.

http://www.pyglet.org/doc/api/pyglet.graphics.vertexattribute-module.html

-- 
Mikael Lind
http://elemel.se/

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

Reply via email to