John Colburn
unread,Apr 4, 2011, 5:09:02 AM4/4/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pyglet-users
Hey all, I've been banging my head against this one for a while and
I just can't get it figured out.
Why in the world are generic vertex attributes (as seen when
creating a VertexList) inaccessible after the list is created? Is it
just an arbitrary limitation designed to make generic attributes less
useful, or can anybody identify an actual technical reason for it?
I've tried sifting through the code for vertex lists / domains /
attributes and so on, but it's one of the most complicated sections of
pyglet and I'm really having trouble making sense of it. It looks like
it should be possible to patch in some way of modifying generic
attributes based on how standard attributes are handled, but the
getters and setters for are tied in so tightly with all the caching
and batching that it's kind of intimidating to try to reproduce any of
it.
At any rate, just been trying to attach some extra information to my
vertices and the fact that I can't modify any of it after creation is
really ruining pretty much everything. I can mis-use the other
attributes, like secondary_colors, but there aren't very many of those
and it seems kind of silly considering that I could be using up to 16
custom attributes if only they could be modified.