Hi
I've just migrated to python and pyglet, so excuse me for my
n00biness ;)
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)
Here is the error I get:
File "/var/lib/python-support/python2.6/pyglet/graphics/
vertexdomain.py", line 339, in draw
self.domain.draw(mode, self)
File "/var/lib/python-support/python2.6/pyglet/graphics/
vertexdomain.py", line 270, in draw
buffer.bind()
File "/var/lib/python-support/python2.6/pyglet/graphics/
vertexbuffer.py", line 398, in bind
self.data_ptr + self._dirty_min)
File "/var/lib/python-support/python2.6/pyglet/gl/lib.py", line 105,
in errcheck
raise GLException(msg)
pyglet.gl.lib.GLException: invalid value
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---