def stop(self): glutDestroyWindow(glutGetWindow()) for _ in range(10): # At least 2 to close OpenGL.GLUT.freeglut.glutMainLoopEvent()
def stop(self): glutDestroyWindow(glutGetWindow())
def close(self): # embed() glutDestroyWindow(glutGetWindow()) # embed() sys.exit() # How do I clean up memory resources before exiting? Is it needed, or handled by destroywindow