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