On 9/14/08, josch <[EMAIL PROTECTED]> wrote:
>
>  okay i got the trick.
>  to do a vertex_list.delete() and batch.add() for each movement is no
>  problem as long as one does not pack each tile into its own vertex
>  list so that delete() and batch.add() are called very often (this
>  seems much overhead) but organizes all tiles with the same texture in
>  one vertex list that is added with one batch.add() per texture used to
>  draw the scene.

If a vertex list contains only tiles with the same texture, then you
don't need to remove/add it from/to the batch just to change texture;
just change the texture on the vertex list's group.

Forgive me if I misunderstand; I'm not entirely following your
description, and am a bit fuzzy headed after PyWeek to be reading
source code.

Alex.

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