On Fri, Oct 18, 2013 at 9:40 PM, Akuji FooBar <[email protected]> wrote:

> Hi,
>
> I wanted to understand how opengl indexed vertex list works and I found it
> tough to understand how to use it with pyglet. So I created a little
> example that creates vertexes all over the screen and draw a little square
> with them, one by one.
>
> If somebody have the same problem as I did, here it is:
>
> http://pastebin.com/fDLNwxV3
>
>
Note that if you aren't changing the vertex data every frame, you should
probably put it in a batch instead:

http://www.pyglet.org/doc/api/pyglet.graphics.Batch-class.html#add_indexed

-- 
Tristam MacDonald
http://swiftcoder.wordpress.com/

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