yeah i did this already with a dummy GL_QUAD of zero size - but this
felt dirty.

would be nice to have zero sized vertex lists - especially when one
could invoke batch.add() with zero vertices so they are already in the
batch and bound to a group. when this is possible i will wait for this
feature.

On Nov 4, 10:42 pm, "Alex Holkner" <[EMAIL PROTECTED]> wrote:
> On 11/5/08, josch <[EMAIL PROTECTED]> wrote:
>
>
>
> >  Hi!
>
> >  I use a dynamic number of vertex lists to draw to my screen, because
> >  depending on the map size different number of textures are required.
> >  Hence I dynamically resize the vertex lists when moving around the map
> >  according to what has to be drawn.
> >  My problem: when there is no object of the group of one of the vertex
> >  lists to be drawn in one scene then the size of the specific list
> >  would be zero - which is not allowed.
> >  So what can I do? I do not want to delete() and add() the vertex list
> >  because of the overhead. Maybe I have to live with dummy vertices? And
> >  how do i initialize such a list?
>
> If your list is of triangles, three vertices with the same coordinate
> will give a degenerate  triangle -- one that is guaranteed not to
> render.  Similarly, use four of the same vertices for a quad, etc.
>
> It should be pretty easy to add support for zero-length vertex lists;
> I'll look into it for pyglet 1.2.
>
> 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