我正在尝试遵循与此处问题作者相同的教程。 不幸的是,当我尝试在该页面底部运行示例代码时,我收到以下错误:
Traceback (most recent call last):
File "C:\Users\Matt\workspace\pygletTest\main.py", line 9, in <module>
from gletools import ShaderProgram, FragmentShader, VertexShader
File "build\bdist.win32\egg\gletools\__init__.py", line 9, in <module>
# See the README file for information on usage and redistribution.
File "build\bdist.win32\egg\gletools\texture.py", line 454, in <module>
File "build\bdist.win32\egg\gletools\texture.py", line 455, in ArrayTexture
NameError: name 'GL_TEXTURE_2D_ARRAY' is not defined
我在 Windows Vista 上使用 Python 2.6 和 Eclipse。关于如何解决这个问题的任何想法?