使用 Pyglet 進行 OpenGL
import pyglet
from pyglet.gl import *
win = pyglet.window.Window()
@win.event()
def on_draw():
#OpenGL goes here. Use OpenGL as normal.
pyglet.app.run()
import pyglet
from pyglet.gl import *
win = pyglet.window.Window()
@win.event()
def on_draw():
#OpenGL goes here. Use OpenGL as normal.
pyglet.app.run()