pyglet
should automatically create the highest version context it can. Does your hardware/drivers support OpenGL 3?
$ python -c "from pyglet.window import Window; print(Window().context.get_info
().get_version())"
4.2.0
major_version
and minor_version
seem to work as well:
$ python -c "from pyglet.window import Window; \
from pyglet.gl import Config; \
print(Window(config=Config(major_version=3, minor_version=2))\
.context.get_info().get_version())"
3.2.0
get_info
is still a Context method. What pyglet do you use?
get_info
wasn't a Context method before pyglet 1.2, and there is no OpenGL 3 example with pyglet 1.1.
You should use pyglet 1.2 alpha (or the latest source).