OpenGL在pyglet调用问题
try:#OpenGL调用的开始
config = pyglet.gl.Config()
windows = pyglet.window.Window(fullscreen=True, config=config)
except pyglet.window.NoSuchConfigException:
windows = pyglet.window.Window(fullscreen=True)
#OpenGL调用的结束
问题描述: 在调用opengl时候 出现黑屏,不显示文字,删除opengl的调用可以正常运行,显示文字。
求解:正确的调用OpenGL的方法 如果你需要阅读完整的源码,可以访问我的GitHub [完整的源码](https://github.com/jianghiwht/genshin-choss-man.git "完整的源码")