That is strange, since in the source code for add_indexed,

(in
http://pyglet.googlecode.com/svn/branches/pyglet-1.1-maintenance/pyglet/graphics/__init__.py,
rev 2446, which I happen to have at hand),

it looks like it returns a vlist object, but first it calls some methods on
that vlist which would fail if it
was None. Can you file a bug report with a complete example, for further
investigation?

- Bruce Smith

On Sat, Oct 17, 2009 at 9:33 AM, Dinedel <[email protected]> wrote:

>
> Hello, I'm using windows pyglet 1.1.3.
>
> When I create a batch and add an indexed vertex list to it, it draws
> perfectly fine. However, I am unable to delete the indexed vertex list
> from the batch to prevent it from being displayed any more. The
> documentation says I should be calling the indexedvertexlist.delete()
> function, but an indexedvertexlist is not returned by batch.add_indexed
> (). Instead, nothing is returned.
>
> Code snip:
>
> display_list = batch.add_indexed(
>                              num_verts,
>                              gl.GL_TRIANGLES,
>                              TextureBindGroup(textures
> ['testing_texture']),
>                              indices,
>                              ('v2f/static', flat_verts),
>                              ('t2f/static', tex_coords)
>                              )
>
> display_list.delete()
> AttributeError: 'NoneType' object has no attribute 'delete'
>
>
> >
>

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