I need a glut window in python.
I have the following exception using Python 3.5 and PyOpenGL.GLUT
Traceback (most recent call last):
File "D:...Test.py", line 47, in <module>
if __name__ == '__main__': main()
File "D:...Test.py", line 9, in main
glutInit(sys.argv)
File "C:...OpenGLGLUTspecial.py", line 333, in glutInit
_base_glutInit( ctypes.byref(count), holder )
File "C:...OpenGLplatformaseplatform.py", line 407, in __call__
self.__name__, self.__name__,
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit,
check for bool(glutInit) before calling
Platform: Windows
Why do i get this error?
Here is my code:
from OpenGL.GLUT import *
import sys
glutInit(sys.argv)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…