问题描述
第一个Python OpenGL程序 ogl1.py
from OpenGL.gluT import *
from OpenGL.GL import *
from OpenGL.glu import *
def draw():
glClear(GL_COLOR_BUFFER_BIT)
glutWireTeapot(0.5)
glFlush()
glu@R_404_6193@t(sys.argv)
glu@R_404_6193@tdisplayMode(gluT_SINGLE | gluT_RGB)
glu@R_404_6193@twindowSize(250,250)
glu@R_404_6193@twindowPosition(100,100)
glutCreateWindow("My Second OGL Program")
glutdisplayFunc(draw)
glutMainLoop()
Traceback (most recent call last): File "C:\Users\Jahnavi Yeadoti\AppData\Local\Programs\Python\python38\pythonprojact\teapot.py",line 15,in <module> glu@R_404_6193@t(sys.argv) File "C:\Users\Jahnavi Yeadoti\AppData\Local\Programs\Python\python38\lib\site-packages\OpenGL\gluT\special.py",line 333,in glu@R_404_6193@t _base_glu@R_404_6193@t( ctypes.byref(count),holder ) File "C:\Users\Jahnavi Yeadoti\AppData\Local\Programs\Python\python38\lib\site-packages\OpenGL\platform\baseplatform.py",line 423,in __call__ raise error.NullFunctionError( OpenGL.error.NullFunctionError: Attempt to call an undefined function glu@R_404_6193@t,check for bool(glu@R_404_6193@t) before calling
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)