2009/8/18 Enk <[email protected]>: > I'm trying to render a model using vertex lists, but I get an error > when I try to draw them. > It works when I use the same values in the pyglet.graphics.draw > function, but when I convert the code to use vertex_list it fails :/ > > This works: > pyglet.graphics.draw(3, GL_TRIANGLES, ('v3f', pointlist)) > > > This don't > vertex_list = pyglet.graphics.vertex_list(3, ('v3f', pointlist)) > vertex_list.draw(GL_TRIANGLES)
Is pointlist a list or a tuple? I think I've had problems passing a Python list to a pyglet vertex list. Try converting pointlist to a tuple before passing it to vertex_list(). If this doesn't help, please specify the type and contents of pointlist. -- Mikael Lind http://elemel.se/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
