Hi! I typed the following example code, found in the Graphics section of
the programming guide.
vertex_list = pyglet.graphics.vertex_list(2,
('v2i', (10, 15, 30, 35)),
('c3B', (0, 0, 255, 0, 255, 0)))
But it gives me the following error.
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\pyglet\graphics\__init__.py", line 445,
in _get_domain
domain = domain_map[key]
KeyError: (('v2i', 'c3B'), 0, False)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
vl = pyglet.graphics.vertex_list(2, ("v2i", (10, 15, 30, 35)), ("c3B", (0,
0, 255, 0, 255, 0)))
File "C:\Python34\lib\site-packages\pyglet\graphics\__init__.py", line 289,
in vertex_list
return _get_default_batch().add(count, 0, None, *data)
File "C:\Python34\lib\site-packages\pyglet\graphics\__init__.py", line 364,
in add
domain = self._get_domain(False, mode, group, formats)
File "C:\Python34\lib\site-packages\pyglet\graphics\__init__.py", line 451,
in _get_domain
domain = vertexdomain.create_domain(*formats)
File "C:\Python34\lib\site-packages\pyglet\graphics\vertexdomain.py", line
135, in create_domain
return VertexDomain(attribute_usages)
File "C:\Python34\lib\site-packages\pyglet\graphics\vertexdomain.py", line
186, in __init__
usage=usage, vbo=vbo)
File "C:\Python34\lib\site-packages\pyglet\graphics\vertexbuffer.py", line
116, in create_mappable_buffer
return MappableVertexBufferObject(size, target, usage)
File "C:\Python34\lib\site-packages\pyglet\graphics\vertexbuffer.py", line
382, in __init__
super(MappableVertexBufferObject, self).__init__(size, target, usage)
File "C:\Python34\lib\site-packages\pyglet\graphics\vertexbuffer.py", line
300, in __init__
glGenBuffers(1, id)
File "C:\Python34\lib\site-packages\pyglet\gl\lib_wgl.py", line 82, in
__call__
return self.func(*args, **kwargs)
File "C:\Python34\lib\site-packages\pyglet\gl\lib.py", line 62, in
MissingFunction
raise MissingFunctionException(name, requires, suggestions)
pyglet.gl.lib.MissingFunctionException: glGenBuffers is not exported by the
available OpenGL driver. VERSION_1_5 is required for this functionality.
What does this error mean? Does it mean that I don't have the right version of
OpenGL? How do I update OpenGL in a way that pyglet will support it properly?
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.