完整問題:
error.NullFunctionError( OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling
我是win10 64位元電腦
python環境則是3.8.5
我做了以下的事情
pip install PyOpenGL
pip install PyOpenGL_accelerate-3.1.5-cp38-cp38-win_amd64.whl
並且將
glut64.dll
glut32.dll
glut.dll
都丟進我的專案裡跟python程式放在同一個目錄
我有參考了
https://stackoverflow.com/questions/39181192/attempt-to-call-an-undefined-function-glutinit
https://aben20807.blogspot.com/2017/07/1060705-python3pyopengl.html